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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightwindow minimize automatically if page is not loaded fully

    I am using lightwindow.js for poping up a window by clicking some button. The issue is if the web page is not fully loaded, the lightwindow will come in small size, but if I click the button after the whole page is loaded, its working fine. My webpage got some advertisement which pulls from the adserver, so sometimes full page loading is some times slow. any help is appreciated

  • #2
    Senior Coder ckeyrouz's Avatar
    Join Date
    Jun 2009
    Location
    Montreal, Canada
    Posts
    1,044
    Thanks
    5
    Thanked 179 Times in 179 Posts
    Make sure that you are loading data from the server using ajax call.

    If not then when you call another, the latter will wait for you data call to be finished before it is completed.

    In fact to get a normal behavior you should run the processes in parallel (that's what ajax do) otherwise your processes will be in a queue and the second will wait until the first finishes execution.

    Hope this was clear for you.
    Software and cathedrals are much the same - first we build them, then we pray.


  •  

    Posting Permissions

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