Socket
Socket
Sign inDemoInstall

browser-script-loader

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browser-script-loader

a simple & lightweight script loader,provide sync & async way to load script


Version published
Maintainers
1
Install size
69.2 kB
Created

Readme

Source

script-loader

脚本加载器,包括同步、异步、延时等方式,支持promise

  • script-loader 基于原生js的loader,无其他依赖
  • script-loader-promise 基于es6 Promise的promise loader
  • script-loader-angular 基于angular $q的promise loader

ScriptLoader.loadAsync('index1.js', 'index2.js', function(){
    console.log('loaded');
});

install

npm install browser-script-loader --save

Keywords

FAQs

Last updated on 13 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc