Is there a similar event I could hook on to in Event.observe that would
get me the benefit of quickly hiding a big page full of tab content
before it has a chance to flash on screen?
Thanks in advance,
Walter
Best regards
Peter De Berdt
The following links should get you started:
http://dean.edwards.name/weblog/2006/06/again/
http://ajaxian.com/archives/domcontentloadednext
http://www.google.com/search?q=domcontentloaded
TAG
This has been discussed here before, search for a thread with subject:
" Help! Slow Loading Issue"
<URL:
http://groups.google.com.au/group/rubyonrails-spinoffs/browse_frm/thread/d19259e3a3e39a6b/1c1bc52491612102?lnk=gst&q=Slow+Loading+Issue&rnum=1#1c1bc52491612102
>
The simplest solution is to setup an initialisation function (say
called "init()") that you would have called onload and call it from a
script just before your closing body tag, e.g.:
<body>
<!-- lots of stuff ... -->
<script>init && init()</script>
</body>
And save yourself a whole slab of browser-sniffing code that will fail
at least some of the time.
--
Rob
At times I wonder whether my brain is hard-wired to select the most
difficult solution available. Maybe one of these days I'll wise up. =)
Thanks Rob!
TAG