Re:Show HN: Make your site’s pages instant in one minute
by devinl on Saturday February 09, 2019 @11:08AM
(#19122952)
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...
Re:Show HN: Make your site’s pages instant in one minute
by jypepin on Saturday February 09, 2019 @11:52AM
(#19123256)
I stand corrected then, thanks for sharing :) I missed that part!
Re:Show HN: Make your site’s pages instant in one minute
by glitcher on Saturday February 09, 2019 @11:09AM
(#19122967)
Just go directly to the script url: https://instant.page/1.0.0
The code is not obfuscated or minified, very easy to read.
Re:Show HN: Make your site’s pages instant in one minute
by asaph on Saturday February 09, 2019 @11:12AM
(#19122996)
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
by daxterspeed on Saturday February 09, 2019 @11:16AM
(#19123032)
Compression and caching makes any minification of small scripts more than negligible.
Re:Show HN: Make your site’s pages instant in one minute
by asaph on Saturday February 09, 2019 @02:18PM
(#19124037)
Perhaps you meant less than negligible? Or simply negligible? But not more.
Re:Show HN: Make your site’s pages instant in one minute
by hk__2 on Saturday February 09, 2019 @03:57PM
(#19124581)
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.
Re:Show HN: Make your site’s pages instant in one minute
by pbhjpbhj on Saturday February 09, 2019 @04:55PM
(#19124881)
Saves over 50% of bandwidth ... "it's a small improvement".
^_^
Re:Show HN: Make your site’s pages instant in one minute
by hombre_fatal on Saturday February 09, 2019 @07:39PM
(#19125690)
They mean the 300 bytes shaved from gzip to minified+gzip.
Both are under MTU size of TCP packet.
Re:Show HN: Make your site’s pages instant in one minute
by austinwm on Saturday February 09, 2019 @11:10AM
(#19122981)
It appears that the source code [1] is linked from their Technical Details page.
Re:Show HN: Make your site’s pages instant in one minute
by colvasaur on Saturday February 09, 2019 @11:42PM
(#19126398)
Isn't everything client-side on the web inherently open-source?
Re:Show HN: Make your site’s pages instant in one minute
by danra on Saturday February 09, 2019 @11:17AM
(#19123037)
Is there something similar available on Django?
Re:Show HN: Make your site’s pages instant in one minute
by samcodes on Saturday February 09, 2019 @12:03PM
(#19123329)
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.
Re:Show HN: Make your site’s pages instant in one minute
by collinmanderson on Saturday February 09, 2019 @04:40PM
(#19124810)
I use Django and have done similar things. yes this should be backend agnostic.
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.