@kasko/fe-webapp-product-loader-lib

1.2.2 • Public • Published

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

  1. 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');
  2. Product loader adds global KaskoProductLoader instance.

  3. Loaded data is passed to @kasko/fe-webapp-framework-angular starting from version 4.2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @kasko/fe-webapp-product-loader-lib

Weekly Downloads

2

Version

1.2.2

License

UNLICENSED

Unpacked Size

6.53 kB

Total Files

4

Last publish

Collaborators

  • dstabulis
  • matthewwardle
  • a3s
  • tomstumshais
  • ksmelens
  • marcisbee
  • kaskobuild
  • sberlinskis
  • montakasparsone
  • kasko-roberts-sukonovs