Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
public
src
.gitignore
.node-gyp
README.md
package-lock.json
package.json
shrinkwrap.yaml
yarn.lock

README.md

Demo: UA-aware code-splitting with React

Live Demo

A demo showing how to use UA-aware code-splitting in React.js. Utilities for UA parsing provided by ua-parser-js.

This project was bootstrapped with Create React App.

Note: Device classification in this example is extremely basic. See device-year-class or explore custom device -> CPU mapping using a data-source like Geekbench for a production solution.

Installation

git clone https://github.com/GoogleChromeLabs/adaptive-loading
cd cra-ua-aware-code-splitting
npm install
npm start
npm run build
You can’t perform that action at this time.