If you want code to execute before the page is ready, the you should
just inline it in your script tag. Note that you won't be able to
access or modify any DOM component of the page, all you can do is
append some new DOM nodes at the beginning.
html
head
script
$(window).load
On Jul 9, 10:16 pm, benjam [EMAIL PROTECTED] wrote:
Maybe I'm missing something totally obvious, but I was trying to get
an alert to fire after some of the page loads, (but before ().ready).
I tried the following:
$('body').load( function( ) { alert('Hello World'); } );
Just to note on:
I was trying to get an alert to fire after some of the page loads,
(but before ().ready)
'load' is always going to fire *after* 'ready'
3 matches
Mail list logo