LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   big BIG javascript & loading time (https://www.linuxquestions.org/questions/programming-9/big-big-javascript-and-loading-time-5980/)

luigi 08-29-2001 08:00 AM

big BIG javascript & loading time
 
1) having a BIG (>50k) javascript to include in some pages of my site, which is the faster method to do it? At this time I have a .js file src-ed from the html.

2) i have a javascript loop like
for(i=0;i<1000;i++)
document.write('bla bla bla');

the browser waits all the javascript processing before showing any word of the document.
is it possible to "update" the page every let's say 100 items, so that one can start reading the first items while the others are processed?

very newbie in javascript

Luigi

joe1011010 08-29-2001 09:56 AM

Don't understand why you are using Javascript to produce the web page.

If the page is so big, why not split it - the users might appreciate smaller pages (usually limit a page to 3 screen scrolls is advice I read somewhere).

Joe

DoubleLetter 08-29-2001 10:01 AM

Luigi,

I'll bet you're using Netscape. Netscape displays the page AFTEr it has loaded.

And boss, if you have linux now. If you installed Apache, that means you have chance to learn PHP, & cgi..

luigi 09-10-2001 03:53 AM

I'm not too much involved in WEB-languages, so i don't want to learn something more only for writing my little home page :))
So i've seen that javascript, quite similar to my old friend C++, is simples enought to do i want,
but with some little problems....

Any suggestions?

Luigi


All times are GMT -5. The time now is 09:55 AM.