Live data from Hacker News

How true hackers write JavaScript

news.ycombinator.com

1–10 of 342 posts

Re: How true hackers write JavaScript

#9
post #6

function onready () { recoll(); } document.addEventListener("DOMContentLoaded", onready); Just attach recoll() directly. There's no benefit of going via onready().

`recoll(apse)` is a verb. `onready` is an event condition. They are not interchangable. (Though it might be combined into a single line with an anonymous function argument to addEventListener.)
Post reply on HN