Earlier quoted context omitted.
Compression and caching makes any minification of small scripts more than negligible.
Minification is free and is done only once. In our case, the script is .9kb compressed (2.9kb uncompressed). When minified, it goes down to .6kb compressed (1.1kb uncompressed). It’s a small improvement, but there’s no reason to ignore it.
Show HN: Make your site’s pages instant in one minute
221–230 of 361 posts
Re: Show HN: Make your site’s pages instant in one minute
#222Live demo on my website @ https://sysadmincasts.com/ Temporary added it in-line for testing. I was already in the sub 100ms level but this just puts it over the top! Also updated all admin add/edit/delete/toggle/logout links with "data-no-instant". Pretty easy. Open developer preview and watch the network tab. Pretty neat to watch it prefetch! Thanks for creating this! ps. Working on adding the license comment. I str…
Re: Show HN: Make your site’s pages instant in one minute
#223"49 ms from hover to click" -- I guess I'm not exactly the target audience... However, I find it very good the posted snippets include SRI, which sadly to this day almost every script CDN omits. The code is also small enough to just include it in projects, which avoids the external request entirely.
Re: Show HN: Make your site’s pages instant in one minute
#224Earlier quoted context omitted.
> What about poorly-coded websites/apps where GETS are not idempotent or have side-effects? They're already broken, exposing that is a good thing.
Breaking the web is not a good thing. Regardless of how you think things should be done.
Re: Show HN: Make your site’s pages instant in one minute
#225Re: Show HN: Make your site’s pages instant in one minute
#226It doesn't seem to work for me. There are no JavaScript errors in the console* but the that says "test your clicking speed" doesn't even have an event attached to it. Hovering over anything for multiple seconds doesn't fire any requests in the network panel. Anyone else having this issue? * Well, there's this, but I assume it's not dependent on google... `Loading failed for the with source “hxxps://www.googletagmanag…
Re: Show HN: Make your site’s pages instant in one minute
#227Live demo on my website @ https://sysadmincasts.com/ Temporary added it in-line for testing. I was already in the sub 100ms level but this just puts it over the top! Also updated all admin add/edit/delete/toggle/logout links with "data-no-instant". Pretty easy. Open developer preview and watch the network tab. Pretty neat to watch it prefetch! Thanks for creating this! ps. Working on adding the license comment. I str…
nothing on my network tab in ff 65.0
Re: Show HN: Make your site’s pages instant in one minute
#228Earlier quoted context omitted.
Idempotency is not the issue, the issue is that a user might hover over the logout link, not click it, then move on to the rest of the site and find they are logged out for no reason.
Right, which is why the included library includes an HTML attribute to disable prefetch on a given link.
Re: Show HN: Make your site’s pages instant in one minute
#229"49 ms from hover to click" -- I guess I'm not exactly the target audience... However, I find it very good the posted snippets include SRI, which sadly to this day almost every script CDN omits. The code is also small enough to just include it in projects, which avoids the external request entirely.
I thought that as well, but then I realised that I was literally moving my cross over the button and clicking as fast as I can. Thats not how I usually browse the web. I move my cursor usually where I am reading, which includes links, so I am hovering over it before I have decided to click it
Re: Show HN: Make your site’s pages instant in one minute
#230Just found that you have the source available too :) So overall, this is pretty cool.