https://github.com/jpdevries/lazy-react-modal
An example of lazily loading the code for modal windows as well as lazily loading dependencies within those modals
https://github.com/jpdevries/lazy-react-modal
Last synced: 12 months ago
JSON representation
An example of lazily loading the code for modal windows as well as lazily loading dependencies within those modals
- Host: GitHub
- URL: https://github.com/jpdevries/lazy-react-modal
- Owner: jpdevries
- Created: 2017-06-25T18:28:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T12:53:05.000Z (over 8 years ago)
- Last Synced: 2025-02-15T03:32:51.958Z (about 1 year ago)
- Language: JavaScript
- Size: 3.04 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lazy-react-modal
An example of lazily loading the code for modal windows as well as lazily loading dependencies within those modals. Our initial JS weight is 51kB. If and when the modal is opened the modal code (4kB) and the mapbox code (132kB) is loaded lazily.

## Demo
[Try it out](https://jpdevries.github.io/lazy-react-modal/).