i am in a problem where my page does not become editable unless and untill its all images and everthing does not appear. so to make that, i tried the image in one scenario to be load my an ajax call.
i just mad a small call like this
now the case is what i am trying page should separately and initially the dummy.gif should be shown and then a ajax call will be made immediately after it to load the actual image from the server which is taking time to show and display in the div.
just trying to separate the load taking image from actual page call so page should become editable while image could keep loading later.
but this approach is not working, as initially i load a page, it does not eve show an image nor it load the file
then i tried adding the setInterval function to the load method like this:
so by this it makes call every 1 sec and then it keeps on executing that specific code every one second. this approach works, but i am not sure if this is a feasible solution and it is making a call again and again, it will hit performance, so anyone can guide better