I’ve been working on a page on our site which completes loading, but hangs on a Javascript (so Document Complete never gets fired).
Although this is not a huge problem, it means the page is never finished loading (some users may wait for it?). It also reports huge loading times in Google’s Webmaster Tools Performance graphs (average of 30 seconds). I also ran chartbeat and found that it wasn’t unusual to see this page take 120s to load.
Is there a way to debug which JS function is holding up my page?