|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
could be
hi everyone
i have a minor problem; recently before 3-4 months i started a thread where i wanted to know where to find a script when content is hidden until page loads. i got a reply and the script worked but not completly after that i found another more modern script with document.getElementById and it works but not completly. the problem is that both scripts after the first load on computer are not doing the scripting very well the problem is that bgimage is loaded slowly or the where the flash is accours whitening and that bothers me but that is only on fresh computer and when history and files have been delated in browser i only need a script that would do the job better or even before second page loads the first one ll be visible (any script that would fix whitening and and when files are loaded the page content would pop up imediatlly) thanks and regards zimko View Public Profile Send a private message to zimko Find all posts by zimko #2 05-24-2007, 07:20 AM \\.\ \\.\PhysicalDevice0 Join Date: Mar 2007 Location: localhost Posts: 454 ADD a background colour to your page to stop the "Default" white background. no script needed. How big are the images your using... Big as in bit depth, colours, dpi, height, width and format, eg gif, jpg... and its files size it occupies on your disk. Also a big factor in page load times is the web page itself, if it is too large then it slows rendering down. Too many external images and scripts also slow page load down. A background image larger than 30kb is too large. Theirs plenty of other ways of increasing your sites overall performance, but first it is best to look at the most obvious problems that cause slow page loads. ------------------------------------------------------------------------- ------------------------------------------------------------------------- i saw many pages having a lot of images but they still loadad imediatlly just pop up after the all content has been downloaded with the body onload event i wonder what is the secret of that howevare here is the page i am having trouble http://www.astrokepler-astrologija.com (if i reduce the quality of picture the pictures are ugly and blur so i thing that is not the solution - no picture is big then 10 k except logo that is 20 k maximum for best load is i think less then 30 k any more idea ?) |
|
#2
|
||||
|
||||
|
The "problems" you are describing are how browsers work. I can't see how wanting the page to appear after all the content has been loaded would be a good thing. The user just has to sit there and wait? Sounds like a flashback to table-based layouts. Why not just let it load normally? Text will appear first, and it gives the user something to read while the other unimportant background images load.
Honestly, you're trying to hack a browser's normal process with JavaScript. Just don't worry about it. As coders and designers, we tend to get wrapped up in the smallest details. Your users won't know the difference. They might actually be annoyed that they have to wait for the whole page to download. They might think, "why is this site so slow?"
__________________
My Blog: FundaMental Disaster Accessible DHTML Tabs | Quick CSS Positioning Explanation | Quick Floated Elements Explanation | 50% + 50% != 100% | Gaps Under Images | ID vs. Class | Gappy Lists in Internet Explorer | Why Tables Are Slower | Benefits of XHTML vs. HTML | Linking to External Style Sheets | About DOCTYPES | Web Design is a Peanut Butter & Jelly Sandwhich | CSS: To Hack Or Not To Hack | Internet Explorer and Transparent PNGs |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|