Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mccolin
on Feb 5, 2016
|
parent
|
context
|
favorite
| on:
Dragula: Drag and drop so simple it hurts
Script tags at the bottom of body has become the accepted standard for faster page loads. I'd think the library would have to be doing some strange things to
not work
if placed in the head, though.
bevacqua
on Feb 5, 2016
[–]
> 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
on Feb 5, 2016
|
parent
[–]
Why not use document.DOMContentLoaded ?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: