Skip to content

Comment on Experimentally verified: “Why client-side templating is wrong” (2015)parent

Comments

Links that represent navigation within the web app should still have a `href` attribute - even if click events are being handled with AJAX and pushState. That way middle-click, etc. work as expected.

Of course, some links don't actually represent navigation, so for them this isn't really applicable (e.g. a button to collapse an accordion-style view).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.