10 ms·
> I'd think the library would have to be doing some strange things to not work if placed in the head, though. Not really. All it does is `var body = document.b
by bevacqua 11y ago
> I'd think the library would have to be doing some strange things to not work if placed in the head, though.
Not really. All it does is `var body = document.body` in an IIFE. In <head>, that yields undefined.
- masswerk 11y agoWhy not use document.DOMContentLoaded ?