HubSpot Client API
This package exposes a function named "load" which takes a URL or an array of URLs and returns a Promise will resolve after all resources finishes loading.
npm inpm run prepublish
Installation
npm i -S load-resource
API
require('load-resource')
returns a function with the following signature: function(url[, opts = {}) => Promise
url
Any url that you would like to load. May be absolute or relative.
[, opts]
A map of attributes to set on the script
or link
node before appending it to the DOM. By default this is empty.
Usage
; // Load a single libraryloadResource; // Load multiple librariesloadResource;
License
See LICENSE.txt