Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there anything before onload?

 
Priya Lavti
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to set some preferences on an html page which are coming from Java Session. I set these preferences on onload event of the page. My problem is that the page has lots of Images which takes time in loading the page, and consequently it delays the onload event. And for a while it seems that preferences has not been set.

Now my question is that is there anything in javascript or html or JSP which can be triggered before onload event for setting the preferences without delay.

~pinks
[ October 17, 2005: Message edited by: Bear Bibeault ]
 
Scheepers de Bruin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Preferences like?

Why don't you apply these 'preferences' while constructing the page server side?
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what about window.onbeforeunload ?

Thanks,
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops sorry !! i am not sure if there is anything that calls before onLoad()

Thanks,
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only thing that calls before onload is putting the code inline in the page. Therfore it executes when the browser gets to it when the page is rendering.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic