You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since at least several months ago, some piece of javascript on vimgolf.com has been running slow on large challenge pages. I think I've found the problem: a call to .button() in application.js. Removing it on a local copy removes the issue.
This link suggests that initializing a button in jQuery involves an expensive DOM search every time it's triggered, so it causes problems on large pages.
Severity: On the largest pages, this problem causes up to a 30 second delay after $(document).ready triggers, after which I can't scroll. (That's on my modern-but-bargain-cheap laptop, running Firefox.) I get up to 3 "Stop script" dialogs during that time. For users who can't see all the solutions yet, it won't be quite so bad, but after they climb the leaderboard...
The text was updated successfully, but these errors were encountered:
Since at least several months ago, some piece of javascript on vimgolf.com has been running slow on large challenge pages. I think I've found the problem: a call to
.button()
in application.js. Removing it on a local copy removes the issue.This link suggests that initializing a button in jQuery involves an expensive DOM search every time it's triggered, so it causes problems on large pages.
Severity: On the largest pages, this problem causes up to a 30 second delay after
$(document).ready
triggers, after which I can't scroll. (That's on my modern-but-bargain-cheap laptop, running Firefox.) I get up to 3 "Stop script" dialogs during that time. For users who can't see all the solutions yet, it won't be quite so bad, but after they climb the leaderboard...The text was updated successfully, but these errors were encountered: