On Feb 22, 1:43 pm, Tom Gregory <[EMAIL PROTECTED]> wrote:
> A couple of thoughts:
>
> 1) Become familiar w/ Dean Edwards work with the DOMContentLoaded and
> onLoad events.  (Even if he does poke fun at our Mr. 
> Fuchs)http://dean.edwards.name/weblog/2005/09/busted/http://dean.edwards.name/weblog/2006/06/again/?full#comment5338
>   <--

It is much simpler and more robust to insert a script element
immediately before the closing body tag to start whatever was going to
happen when the load event occurred:

  <script>init && init()</script>


> 2) This suggestion might break things for users w/o Javascript
> (unless you get creative w/ noscript tags), but you could assign all
> images to a small placeholder, then in onload (or DOMContentLoaded,
> as per #1) change the img src to the tru thumbnail.

And none of the thumbnails will be visible until they all load.


--
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to