4 ms·
Is there an option for lazy loading? i.e., a lightwieght script that looks for delimited text and pulls in the rest of the library if needed?
by andreareina 10y ago
Is there an option for lazy loading? i.e., a lightwieght script that looks for delimited text and pulls in the rest of the library if needed?
- lutusp 10y ago> Is there an option for lazy loading? I believe Apache can run user-defined scripts to perform this sort of thing -- in this case, look at a page's content and decide how to proceed. But high-volume sites don't like such things because it dramatically slows page loading.
- andreareina 10y agoI was thinking client-side: <script>if (document.body.innerHTML.match(...)) {load_script(https://...)}</script>