jpdevries / lazy-react-modal

An example of lazily loading the code for modal windows as well as lazily loading dependencies within those modals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

An example of lazily loading the code for modal windows as well as lazily loading dependencies within those modals


Languages

Language:JavaScript 71.7%Language:HTML 19.4%Language:CSS 8.8%