Re:Don't wait for "DOM ready" for your app to start
by crazygringo on Friday June 08, 2012 @07:25PM
(#4086608)
You could have your scripts just define functions, then call all those functions from the bottom of your <body>.
Or, using jQuery, you could probably define a custom event on the <body>, that you trigger manually from the bottom of your <body>, and have your scripts in the <head> listen for that event. I've never actually tried this, though.
Or, using jQuery, you could probably define a custom event on the <body>, that you trigger manually from the bottom of your <body>, and have your scripts in the <head> listen for that event. I've never actually tried this, though.