Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member medlington's Avatar
    Join Date
    Nov 2005
    Location
    Sheffield, UK
    Posts
    377
    Member #
    11968
    Liked
    4 times
    Hi,

    I've just made a site and the main focus of it is a gallery of images which are all quite large, there are over 100 images all between 50 - 100k and the problem Im having is that my client is having trouble viewing the site on her blackberry. Im pretty sure that this is because the page is trying to load all of the images before it displays the site. She can connect to it intermittently but occasional it does say 'site too large'.

    Here is a link to the site:

    http://jopriceflowers.co.uk/

    Im thinking that I should be able to put one of the images in a div in the middle of the site and then through javascript tell it to swap the div for the one containing my gallery when the page has loaded. My theory is that the initial page should load on her phone before it tries to load all of the other images.

    I rarely touch javascript but I plan to use something like onload='swapdiv()' in the body tag and then the swapdiv function just changes display to 'none' on the visible div and to 'block' on the hidden one.

    Should this work or will it still try to load the content from the div containing the gallery even if display is set to none?

    Can anyone think of any different ways to do this?

    Thanks

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    If display is set to none, it still will load the image in the gallery. Whatever's in the HTML code for images will be loaded.

    What you CAN do as a compromise is to preload the images after the rest of the page has loaded, or at least load say 5 of them and then load the rest up into an array. Mind you, you could still end up with that error, so you may have to load them on the fly.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Senior Member medlington's Avatar
    Join Date
    Nov 2005
    Location
    Sheffield, UK
    Posts
    377
    Member #
    11968
    Liked
    4 times
    I thought it may still try to load the content even if display was set to none, oh well back to the drawing board. I'm going to ask a few people to test out the site first to see if its just an issue with her device before I try to find a solution.

    Thanks for the reply


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:47 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com