LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-29-2001, 08:00 AM   #1
luigi
LQ Newbie
 
Registered: Aug 2001
Location: Italy
Distribution: kubuntu
Posts: 27

Rep: Reputation: 15
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
 
Old 08-29-2001, 09:56 AM   #2
joe1011010
Member
 
Registered: Aug 2001
Location: UK
Posts: 48

Rep: Reputation: 15
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
 
Old 08-29-2001, 10:01 AM   #3
DoubleLetter
Member
 
Registered: Jun 2001
Location: Sharjah, United Arab Emirates
Distribution: Mandrake Linux 10.1
Posts: 132

Rep: Reputation: 15
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..
 
Old 09-10-2001, 03:53 AM   #4
luigi
LQ Newbie
 
Registered: Aug 2001
Location: Italy
Distribution: kubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Big O, Big Omega, and Big Theta oulevon Programming 7 05-26-2010 07:18 AM
Big Time Newbie & Sendmail CrazyCol Linux - Newbie 1 05-31-2005 02:15 PM
Big, big hard drive in a little, little tablet... pengyou Linux - Laptop and Netbook 6 10-18-2004 03:44 AM
Installing RH 9 with RAID 5 --Big, big Problem!!! rhonneil Linux - Software 2 09-25-2003 08:13 PM
F...ed up big time neo77777 Slackware 6 12-01-2002 02:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration