• Post Reply Bookmark Topic Watch Topic
  • New Topic

Image loading problem on browser  RSS feed

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Thanks a lot in advance.
We are using J2EE as technology for our application. And there are some images which we have used in JSP some are preloaded images in jsp and some are coming from CSS back ground images. But suppose if user clicks on any link while loading images on browser application is giving javascript error for that image source.
I don’t want allow user until and unless all images are loaded on browser.
Please help me how to do this.

Regards,
Sree
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66263
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normal image loading has nothing to do with JavaScript. If you are getting JavaScript errors there's something else at play here that you are not telling us. Perhaps you should elaborate.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your image preloader look like and what does your link look like. With those two thing, I am sure we could help you out.

Eric
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.
Just want to keep the user busy or blocked till all images are loaded on the browser.
Actullay we have some links which will takes the source of that image and will redirect to some other page.
Howerver,the image is still not loaded so javascript will not get source of that image hence it is giving error.
So I want to block the page.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There really is nothing you can do with loading images. If your images are taking forever, sounds like you need to optimize the images and use cnames to make them load faster.

Eric
 
Paul Clapham
Sheriff
Posts: 22713
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if your images are loading slowly, then (I speak from personal experience) blocking the user from looking at the rest of the page or scrolling through it is quite annoying. So if you thought that would be a useful feature, I don't agree.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
function cursor_wait() {
document.body.style.cursor = 'wait';
}

saying the enduser that page is busy

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!