@mabbly/starter
v1.1.1
Published
Core modules that power websites built by Mabbly
Downloads
3
Keywords
Readme
StarterJS
Mabbly StarterJS is a JS library that has some most used functionality across Mabbly's Web Projects.
- To use StarterJS in your project, import it and instantiate it and save a reference to it.
import Starter from '@mabbly/starter';
const MabblyStarter = new Starter({
loadWistia: true,
loadImagesAsync: true,
loadSentry: true
}, window);
window.MabblyStarter = MabblyStarter;
MabblyStarter.init();
MabblyStarter can do the following things:
- Load Wistia JS asynchronously
- Load all your images asynchronously
- Loads
object-fit
andpicturefill
polyfills - Loads Sentry JS module
- Exposes a class
AsyncLoader
to load any third party JS/CSS file asynchronously.