4 ms·
If you like to hyper optimize your site like me, and since it doesn't do any good on mobile (Edit: apparently it works on mobile, ignore this), you can have it
by elliotec 8y ago
If you like to hyper optimize your site like me, and since it doesn't do any good on mobile (Edit: apparently it works on mobile, ignore this), you can have it selectively grab the script on desktop and save a few bytes like this:
<script type="text/javascript">
if (screen.width > 768) {
let script = document.createElement('script');
script.src = '//instant.page/1.0.0';
script.type = 'module';
script.integrity = 'sha384-6w2SekMzCkuMQ9sEbq0cLviD/yR2HfA/+ekmKiBnFlsoSvb/VmQFSi/umVShadQI';
document.write(script.outerHTML);
}
</script>
- eridius 8y agoThe site claims it works on mobile > On mobile, a user starts touching their display before releasing it, leaving on average 90 ms to preload the page.