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.
yarn install
yarn build
yarn add @kasko/fe-webapp-product-loader-lib -D
-
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