@kasko/fe-webapp-product-loader-lib
v1.2.2
Published
Kasko product loader
Downloads
75
Maintainers
Keywords
Readme
FE product loader library
Library for loading initial webapp requests (touchpoint and item) that is embedded in the DOM and triggered on page load. This reduces the time it takes for the webapp to full load.
Installation
yarn install
yarn build
Installing in other projects
yarn add @kasko/fe-webapp-product-loader-lib -D
Using in other projects
Requiring
@kasko/fe-webapp-product-loader-lib
will return string that could be injected in HTML usingHtmlWebpackPlugin
.const { KaskoProductLoaderScriptTag } = require('@kasko/fe-webapp-product-loader-lib');
Product loader adds global
KaskoProductLoader
instance.Loaded data is passed to
@kasko/fe-webapp-framework-angular
starting from version4.2.0