Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Feedback > Using Prototype dom:loaded w. image resizer script

Using Prototype dom:loaded w. image resizer script
Thread Tools
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Dec 17, 2008, 01:32 PM
I suspect that the image resizer script works via a standard window.onload type of call? How about replacing that call with Prototype's dom:loaded?


The advantage of this is that it is triggered while all content is loaded, but before images are rendered. I've used this successfully on a site of mine, it works well. This will likely result in faster page renders on threads that have large images that mess up the layout initially.

It should be easy to modify the call, you would just need to load the Prototype libraries and then replace your onload with the dom:loaded call.
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 11:52 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,