Re:Show HN: Publish a Markdown website in 5 minutes
by agentgt on Monday November 21, 2016 @12:52PM
(#13007353)
> I think it's completely fine to use JavaScript here. It would be nice to have instant page pushes.
I'm not sure I follow on the instant page pushes. Are you talking about a little dialog that pops up and "says a new version of the page" kind of thing?
Second is there features you saw that required Javascript (as it appeared to me most could be done with CSS)?
And no I don't think it is "completely fine" to use JavaScript particularly if you are trying to spread the word as quickly as possible and don't care about looks (ie most devices, loads fast, low power). There are also a growing amount of people that have Javascript disabled in general.
Re:Show HN: Publish a Markdown website in 5 minutes
by hayd on Monday November 21, 2016 @01:00PM
(#13007429)
One solution is to just send all the linked pages on first load (all the markdown content, so when transitioning they only load images, or of seen before get them "from cache").
Re:Show HN: Publish a Markdown website in 5 minutes
by c0nfused on Monday November 21, 2016 @02:02PM
(#13008106)
Typically this behaviour, page prefetch, is built into a modern browser. Thus, writing it yourself is probably not a great improvement.
Re:Show HN: Publish a Markdown website in 5 minutes
by hayd on Monday November 21, 2016 @02:35PM
(#13008413)
Really?! I need to upgrade my browser. :)
Re:Show HN: Publish a Markdown website in 5 minutes
by gkya on Monday November 21, 2016 @12:49PM
(#13007322)
What is a page push?
Re:Show HN: Publish a Markdown website in 5 minutes
by jakobegger on Monday November 21, 2016 @02:01PM
(#13008097)
I think in this case "page push" means that changes get sent automatically to the client via javascript (as opposed to "pulling" changes by pressing refresh.
Completely useless for static sites, but nice to have while authoring.
But it should be rendering the site without a loading indicator. There's no reason that should be displayed