GHDpro
2003-12-10, 12:37
I'd like to run a small HTML experiment. Right now I'm using PHP to generate the
HTML that displays the large tables full of links you see on the site. The result of
this is a lot of HTML which in turn uses a lot of bandwidth, eventhough a lot of the
elements are re-used (html and links).
By using JavaScript to generate the pages I'm hoping to very significantly reduce the
bandwidth usage of the site, which, just to give you an example, was up to 20 Gb on
December 4th alone.
Now the problem with this is that I'm asking Javascript to do a lot, and before I
actually go and modify the scripts, it might be useful to test first if it is even feasable.
I've created a test script which does nothing more than generate a table of 1000 rows.
It takes about 1-2 seconds to display on my notebook, which is quite accepitble, certainly
as no page on AnimeSuki is actually showing more than 150-250 rows max.
But... my notebook has a Athlon XP 2000 CPU and I'm wondering what would happen
on systems that are a bit slower than that. Now of course on 486's etc it will probably
take much more time to generate the page, but then again, those systems can't be
used to view anything that can be downloaded of AnimeSuki anyway.
Also how acceptably slow a page loads appears to depend on the browser. On the
browser I've tested, Mozilla appears to be the slowest. IE is at an acceptible normal
speed and Opera (v7) and Safari (Mac OS browser) are quite fast.
You may get the following message when using MS Internet Explorer 6.0:
A script on this page is causing Internet Explorer to run slowly. If it continues to
run your computer may become unresponsive. Do you want to abort the script?
When you see this message, hit Yes and please report in this thread the
row number of the last row that was displayed. On my notebook it is "row573" right now,
but I've got a feeling this message may depend on the speed of your computer.
Anyway... enough talk. The URL of the test page is:
http://animesuki.mangaitalia.com/javascript.html
As you can see it generates quite a huge page. But if you look at the source code
and at the filesize as reported by IE -- the page is less than 1200 bytes.
So what do I want exactly? Well, if you want to help me out, please test this on:
* Any browser you may have installed on your PC that supports JavaScript to see if it works
* See how fast the page is actually generated -- no stopwatch required, but did it take
very long, or is it an acceptible delay?
* If you use MSIE 6.0 and see the message mentioned above: mention row number please.
HTML that displays the large tables full of links you see on the site. The result of
this is a lot of HTML which in turn uses a lot of bandwidth, eventhough a lot of the
elements are re-used (html and links).
By using JavaScript to generate the pages I'm hoping to very significantly reduce the
bandwidth usage of the site, which, just to give you an example, was up to 20 Gb on
December 4th alone.
Now the problem with this is that I'm asking Javascript to do a lot, and before I
actually go and modify the scripts, it might be useful to test first if it is even feasable.
I've created a test script which does nothing more than generate a table of 1000 rows.
It takes about 1-2 seconds to display on my notebook, which is quite accepitble, certainly
as no page on AnimeSuki is actually showing more than 150-250 rows max.
But... my notebook has a Athlon XP 2000 CPU and I'm wondering what would happen
on systems that are a bit slower than that. Now of course on 486's etc it will probably
take much more time to generate the page, but then again, those systems can't be
used to view anything that can be downloaded of AnimeSuki anyway.
Also how acceptably slow a page loads appears to depend on the browser. On the
browser I've tested, Mozilla appears to be the slowest. IE is at an acceptible normal
speed and Opera (v7) and Safari (Mac OS browser) are quite fast.
You may get the following message when using MS Internet Explorer 6.0:
A script on this page is causing Internet Explorer to run slowly. If it continues to
run your computer may become unresponsive. Do you want to abort the script?
When you see this message, hit Yes and please report in this thread the
row number of the last row that was displayed. On my notebook it is "row573" right now,
but I've got a feeling this message may depend on the speed of your computer.
Anyway... enough talk. The URL of the test page is:
http://animesuki.mangaitalia.com/javascript.html
As you can see it generates quite a huge page. But if you look at the source code
and at the filesize as reported by IE -- the page is less than 1200 bytes.
So what do I want exactly? Well, if you want to help me out, please test this on:
* Any browser you may have installed on your PC that supports JavaScript to see if it works
* See how fast the page is actually generated -- no stopwatch required, but did it take
very long, or is it an acceptible delay?
* If you use MSIE 6.0 and see the message mentioned above: mention row number please.