Back to front pageView on Hacker News (opens in a new tab)Show HN: Make your site’s pages instant in one minute (opens in a new tab)instant.page1214 pointsby dieulot (on Hacker News)7 years agoinstant.page (opens in a new tab)Make your site’s pages instant in 1 minuteAnd improve your conversion rate by 1%Comments (337) 70 threadsShow all commentsShowing thread 26 of 70[-]randlet7 years ago1 reply#Works very well for me.dieulot, is there a small bug with the allowQueryString check? const allowQueryString = 'instantAllowQueryString' in document.body.dataset I think should be: const allowQueryString = 'instantallowquerystring' in document.body.dataset If I have: then 'instantAllowQueryString' in document.body.dataset === false and 'instantallowquerystring' in document.body.dataset === true because html data attributes get converted to lowercase by the browser (I think).[-]dieulot7 years ago1 reply#Uppercase is converted to added dashes. `document.body.dataset.instantAllowQueryString` corresponds to `data-instant-allow-query-string`.randlet7 years ago#Cool thanks! Didn't know that.
Show HN: Make your site’s pages instant in one minute (opens in a new tab)instant.page1214 pointsby dieulot (on Hacker News)7 years ago
randlet7 years ago1 reply#Works very well for me.dieulot, is there a small bug with the allowQueryString check? const allowQueryString = 'instantAllowQueryString' in document.body.dataset I think should be: const allowQueryString = 'instantallowquerystring' in document.body.dataset If I have: then 'instantAllowQueryString' in document.body.dataset === false and 'instantallowquerystring' in document.body.dataset === true because html data attributes get converted to lowercase by the browser (I think).
dieulot7 years ago1 reply#Uppercase is converted to added dashes. `document.body.dataset.instantAllowQueryString` corresponds to `data-instant-allow-query-string`.
Comments (337) 70 threads
Show all comments
Showing thread 26 of 70
dieulot, is there a small bug with the allowQueryString check?
I think should be: If I have: then and because html data attributes get converted to lowercase by the browser (I think).