Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bigcommerce/script-loader

Package Overview
Dependencies
Maintainers
9
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigcommerce/script-loader

A library for loading JavaScript files asynchronously

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-10.4%
Maintainers
9
Weekly downloads
 
Created
Source

@bigcommerce/script-loader

Build Status

A library for loading JavaScript files asynchronously. It loads script files by injecting script tags into DOM during runtime.

Install

You can install this library using npm.

npm install --save @bigcommerce/script-loader

Usage

import { createScriptLoader } from '@bigcommerce/script-loader';

const loader = createScriptLoader();

loader.loadScript('https://code.jquery.com/jquery-3.2.1.min.js')
    .then(() => {
        console.log('Loaded!');
    });

Contribution

To release:

npm run release

To see other available commands:

npm run

License

MIT

FAQs

Package last updated on 23 Aug 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc