4 ms·
It looks like they are only using a small portion of it -- selectors in init and a few event handlers. They could use one of the many pre-existing selector engi
by emehrkay 16y ago
It looks like they are only using a small portion of it -- selectors in init and a few event handlers. They could use one of the many pre-existing selector engines and write a simple cross-browser addEvent function
- donohoe 16y agoThat is the plan. The CSS selectors are only required (for now) as NYT has some specific criteria to cover the markup in various Article and Blg Post pages. For most cases I imagine 'querySelectorAll' or 'getElementsByTagName' would suffice