Skip to content

slavoroi/angular-predictive-prefetching

Repository files navigation

Angular Predictive Prefetching

This project was generated with Angular CLI version 8.3.24.

Angular predictive prefetching with guess.js

guess-ga

fetches structured data from Google Analytics https://github.com/guess-js/guess/tree/master/packages/guess-ga

guess-webpack

webpack plugin which automates the process of applying data-driven bundling & pre-fetching in React & Angular applications https://github.com/guess-js/guess/tree/master/packages/guess-webpack

guess-parser

parses an application in order to create the mapping between routes and JavaScript bundles https://github.com/guess-js/guess/tree/master/packages/guess-parser

run

  1. npm i to install all our project's dependencies.

  2. npm i -g serve

  3. In your package.json, add the following scripts

    "scripts": {
      "start": "ng serve",
      "build": "ng build",
      "build:optimized": "ng build --prod"
    }
  4. npm start your client

  5. build:optimized build your client with aot and optimized flag or build without optimizations

  6. cd dist/angular-predictive-prefetching

  7. run serve -s

  8. In your browser - go to http://localhost:5000/

About

An example for angular-predictive-prefetching with guess.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published