Lurker News

Comments (337) 70 threads

Show all comments

Showing thread 2 of 70

xpose20002 replies#
I've been testing it for the past 30 minutes or so and found that it doesn't cause the same problems that InstantClick did. (Which was javascript errors that would randomly occur.) I'll limit it to a small subset of users to see if any errors are reported but there is a good chance this could go live for all logged in users. Maybe even all website visitors if all goes well.

Seems to have no impact on any javascript, including ads. Pages do load faster, and I can see the prefetch working.
Just make sure you apply the data-no-instant tag to your logout link, otherwise it'll logout on mouseover.

hn_throwaway_991 reply#
> Just make sure you apply the data-no-instant tag to your logout link, otherwise it'll logout on mouseover.

Logout links should never be GETs in the first place - they change states and should be POSTs.

slim3 replies#
POSTs are not Links. And Logout service is indempotent even if you can consider it changes the state of the system
glacials21 replies#
Idempotency is not the issue, the issue is that a user might hover over the logout link, not click it, then move on to the rest of the site and find they are logged out for no reason.

Continue this thread — 21 replies

Gaelan#
Ok, so make it a form/button styled to look like a link.

Continue this thread — 3 replies

ezequiel-garzon1 reply#
Thanks, how did you find out about data-no-instant tag?