Demo: UA-aware code-splitting with React
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.
git clone https://github.com/GoogleChromeLabs/adaptive-loading cd cra-ua-aware-code-splitting npm install npm start npm run build