www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 05-30-2007, 07:49 AM
    zimko zimko is offline
    Registered User
     
    Join Date: May 2007
    Posts: 18
    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 ?)
    Reply With Quote
      #2  
    Old 05-30-2007, 12:57 PM
    toicontien's Avatar
    toicontien toicontien is offline
    er, I mean toicantien
     
    Join Date: Feb 2003
    Location: Chicago Area, IL
    Posts: 5,469
    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?"
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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
    Forum Jump


    All times are GMT -5. The time now is 02:01 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.