javascript - preventing JS running when the page is not loaded -


I have encountered a problem when I use jQuery to load a page with heavy javascript The page is freeze. I believe that this JS page runs before loading because my local site is not stable. However, $ (document) .ready (function () {}); Not working with dynamically loaded pages? is it true? Or anything I can do to solve this problem. Thanks a million!

$ (document) .ready () works fine dynamic pages There should be an error in your code.

The first thing is to see the source and try saving the HTML in a plain .html file, then load that file your browser. If it still fails, then you know that the problem is server-side ASP / PHP / whatever the code is with nothing else until the problem disappears, to remove HTML and JavaScript try. This will help you reduce the criminal line (s) if you can reduce your page in a small file that still shows the problem, then post here and we will try to help.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -