Sounds too good to be true, but also brilliant. Curious what others think. What are the downsides?
Show HN: Make your site’s pages instant in one minute
21–30 of 361 posts
Re: Show HN: Make your site’s pages instant in one minute
#22Perhaps this something that a browser should be doing, instead of websites themselves?
Re: Show HN: Make your site’s pages instant in one minute
#23Perhaps this something that a browser should be doing, instead of websites themselves?
The heuristics to exclude logout links and the like would be very disruptive. Those decisions need to be in the website author's hands. However, I think if browsers had this, but off by default until seeing tags to enable it along with any exclusions, that would be great.
Re: Show HN: Make your site’s pages instant in one minute
#24Enumerate through a list of pages on your site and use something like Puppeteer to simulate hovering over links on each page.
Re: Show HN: Make your site’s pages instant in one minute
#25Earlier quoted context omitted.
Just go directly to the script url: https://instant.page/1.0.0 The code is not obfuscated or minified, very easy to read.
It probably should be minified if the whole point is to improve page load times.
Re: Show HN: Make your site’s pages instant in one minute
#26This is a feature available on most web frameworks today (for example Link's prefetch on Next.js), but still could be very useful for smaller website and other static pages not using such frameworks. I'd be a little wary of using a script from an unknown person without being able to look at the code - I'd rather see this open source before using. Especially being free and MIT licensed, I don't see why it wouldn't be…
Re: Show HN: Make your site’s pages instant in one minute
#27For example, in Drupal every path (whether or not it causes state change) has 2 forms: "/?q=path/to/page" (when you don't have access to .htaccess or .conf) and "/path/to/page" (when you do, and you enable clean URLs).
Re: Show HN: Make your site’s pages instant in one minute
#28Re: Show HN: Make your site’s pages instant in one minute
#29Where does their code get inserted? I could imagine it might help if it were added to the page you were linking from, but the site seems to indicate the code gets added to page you want to have load quickly -- the page you're linking to.
Re: Show HN: Make your site’s pages instant in one minute
#30I don't know that the presence of a query string is a great indicator of whether the link causes state change (cue the typical GET immutability arguments, etc.). For example, in Drupal every path (whether or not it causes state change) has 2 forms: "/?q=path/to/page" (when you don't have access to .htaccess or .conf) and "/path/to/page" (when you do, and you enable clean URLs).