Re: Page load times
by "Norman Bunn" <norman.bunn(at)craftedsolutions.com>
|
| Date: |
Thu, 22 Feb 2001 10:54:15 -0500 |
| To: |
"Romek" <zylla(at)ck-sg.p.lodz.pl> |
| Cc: |
<hwg-techniques(at)hwg.org> |
| References: |
lodz |
| |
todo: View
Thread,
Original
|
|
You're probably right. This is just the way IE5 formatted it when I asked
it to copy the source from my "Organize Favorites" list and it worked fine
when I used it as is.
No harm, no foul,
Norman
www.craftedsolutions.com
----- Original Message -----
From: Romek <zylla(at)ck-sg.p.lodz.pl>
To: Norman Bunn <norman.bunn(at)craftedsolutions.com>
> >I usually check my page sizes using this Bookmarklet and try to keep each
> >page under 35K.
> >
>
>javascript:var%20fs=0;var%20f=1;var%20p='';for(i=0;i<document.images.length
;
>
>i++){if(p.indexOf('('+document.images(i).src+')')<0)fs=fs+parseInt(document
.
>
>images(i).fileSize);p=p+'('+document.images(i).src+')';};fs=fs+parseInt(doc
u
>
>ment.fileSize);fs=fs+'';for(i=fs.length-1;i>0;i--){if(f/3==Math.ceil(f/3)){
f
>
>s=fs.substring(0,%20i)+','+fs.substring(i,fs.length);}f++;}alert('This%20pa
g
> >e%20weighs%20'+fs+'%20bytes.');
>
> Don't you think that in some places should be [i] instead of (i)
> like: document.images(i).src should be document.images[i].src
>
> And %20 should be just white space.
>
> And if one wants to shorten the code this line
> javascript:var%20fs=0;var%20f=1;var%20p='';
> can be changed to
> javascript:var fs=0, f=1, p='';
>
> Romek Zylla
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.