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.
An example of lazily loading the code for modal windows as well as lazily loading dependencies within those modals
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.
An example of lazily loading the code for modal windows as well as lazily loading dependencies within those modals