Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts

    why ie doesnt preload images properly?

    i am using the javascript Image object to preload images, on FF everything works fine but ie always reload the images so i get some flicking , any way to avoid this?
    thanks for your help.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    And what IE version are we talking about here. Versions matter. 8,7,6?

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    version 7

  • #4
    Regular Coder
    Join Date
    Nov 2007
    Location
    Leeds, UK
    Posts
    514
    Thanks
    24
    Thanked 19 Times in 19 Posts
    Well update to 8, And its jittery coz your computer cant cope with the load on the CPU using a preloader starts threads if your using a PC that dose not support hyperthreading E.G older then AMD Socket A then your going to have problems, But allso how are you loading the Images

    IE like to use threads as it is its ActiveX is a threaded thing to start of with is Javascript is another thread then setting it to download Images in a list it starts a thread per image so that it dose not crash the javascript coz you try loading 30 megs of images down a 512 kb broadband its going to take along time and crash the javascript so it starts a new thread so it's more load on the CPU and Memeory, allso if you using 7 i presume XP SP2/3 or VISTA SP0/1 so try removing the memeory limit per application that might help

    But flickering is normally load weather it be GAME, Application, Dektop, Or web Page its PC side not Coding side if it preloads the images its working
    Working towards a Internet where we don't have website just browser applications Kill the Hyper-link and say hello to 3D Games in the browser :)

  • #5
    Banned
    Join Date
    Nov 2008
    Location
    not found
    Posts
    284
    Thanks
    0
    Thanked 53 Times in 51 Posts
    Quote Originally Posted by sybil6 View Post
    i am using the javascript Image object to preload images, on FF everything works fine but ie always reload the images so i get some flicking , any way to avoid this?
    Start by posting your code.

  • #6
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by randomuser773 View Post
    Start by posting your code.
    Code:
    pic1= new Image();
    pic1.src="colonne_jaune.png";
    
    pic2= new Image();
    pic2.src="banner_main.png";
    
    pic3= new Image();
    pic3.src="gradient_banner.png";
    
    pic4= new Image();
    pic4.src="rond_violet.png";
    
    pic5= new Image();
    pic5.src="rond_jaune.png";
    
    pic6= new Image();
    pic6.src="bouton_recommander.png";
    
    pic7= new Image();
    pic7.src="bouton_demande_info_hover.png";
    
    pic8= new Image();
    pic8.src="conseiller.png";
    i put it on a jquery document ready.i could also put it inside a window.onload but results are the same: no preload

  • #7
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Selling fresh stuffs

    Selling cvv,paypal,bank logins,bank transfer,wu bug,wu transfer,fullz,paying online bills,web mailer,mailer,smtp,php,shipping laptops,home theaters and iphone,accept only liberty reserve!

    Yahoo: u5772626

  • #8
    Banned
    Join Date
    Nov 2008
    Location
    not found
    Posts
    284
    Thanks
    0
    Thanked 53 Times in 51 Posts
    Quote Originally Posted by sybil6 View Post
    i put it on a jquery document ready.i could also put it inside a window.onload but results are the same: no preload
    There used to be a problem when a particular ISP mis-configured its servers to serve images with headers that would I.E. interpret as expired, causing the browser to re-download the images every time they were requested. I don't know if this can still happen.
    In itself your code looks O.K. since the Image objects appear to be persistent, but it would help to see the code in context.

  • #9
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by randomuser773 View Post
    There used to be a problem when a particular ISP mis-configured its servers to serve images with headers that would I.E. interpret as expired, causing the browser to re-download the images every time they were requested. I don't know if this can still happen.
    In itself your code looks O.K. since the Image objects appear to be persistent, but it would help to see the code in context.
    yes i do have differents behaviors for ff and ie when browsing the site thru differents ISP.

  • #10
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Make sure that the setting of your IE at
    Code:
    Tools => Internet Options => Temporary Internet files => Settings => Check for newer versions of stored page:
    is set as "Automatically".
    Last edited by abduraooft; 07-20-2009 at 11:34 AM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •