#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0

    How to pre load iframes for faster loading


    When I click a button it shows an iframe(with 1 image), then when I click the button again,it loads a different iframe on the same location. This is slow. How to speed up?

    When we click and load images, it shows white for a fraction of second until the image loads when images change. I used a javascript to pre-load images and that 'white time' is not visible anymore coz it is fast. How to do the same with iframes so they will load fast on each click and the loading time is almost none.
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,110
    Rep Power
    119
    You could load all your iframes and have them hidden; then display show/hide each iframe you do/don't want to be viewed.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    18
    Rep Power
    0
    Or you could just not use iframes

IMN logo majestic logo threadwatch logo seochat tools logo