Hacker News new | comments | ask | show | jobs | submit login

This 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 open.

In the technical details, he has a link to the open source on github. Here's the js that's actually doing the preloading: https://github.com/instantpage/instant.page/blob/master/inst...

I stand corrected then, thanks for sharing :) I missed that part!

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.

Compression and caching makes any minification of small scripts more than negligible.

Perhaps you meant less than negligible? Or simply negligible? But not more.

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.

Saves over 50% of bandwidth ... "it's a small improvement". ^_^

They mean the 300 bytes shaved from gzip to minified+gzip.

Both are under MTU size of TCP packet.

It appears that the source code [1] is linked from their Technical Details page.

[1] https://github.com/instantpage/instant.page

Isn't everything client-side on the web inherently open-source?

Is there something similar available on Django?

This should be completely backend agnostic. I was never a Django person, but you’d just put that script tag in your main template so it loads on every page.

I use Django and have done similar things. yes this should be backend agnostic.

Applications are open for YC Summer 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact