I'm getting an error TypeError: document.body is null
in javascript.
And the solution is found here.
But the problem is that how can I load the specific javascript file(where the error come from) after <body>
? Or just add a window.onload = function()
to this file?
and especially, how to tell the path of the javascript file to the app?
I only know how to include every file into the application.js
, which would trigger before the <body>
load
](http://stackoverflow.com/questions/7751514/javascript-in-head-or-just-before-body)
– DarkBee Jul 22 '13 at 07:52