New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'appendChild' of null #56

Closed
tilight opened this Issue Nov 26, 2015 · 3 comments

Comments

5 participants
@tilight

tilight commented Nov 26, 2015

Hi, i want to add this into my func.js wich is beeing loaded in the head section.
I need the func js in the head section beause of functions while html is running.
But then i get following error:
Uncaught TypeError: Cannot read property 'appendChild' of null

@heliohead

This comment has been minimized.

heliohead commented Dec 19, 2015

I have the same error :(
screenshot 2015-12-19 19 38 36

@amybvn

This comment has been minimized.

amybvn commented Dec 21, 2015

i moved notie.js to footer then everything work fine.

@patosai

This comment has been minimized.

patosai commented Dec 28, 2015

The problem is that the script might get executed before the 'body' element gets parsed, so document.body returns null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment