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 using HtmlWebpackPlugin
.
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 version 4.2.0