: Could too many HTTP requests using AJAX result in browser crashes? We are running an ASP.NET web application, and recently we received a lot of crash reports from users. It sometimes crashes
We are running an ASP.NET web application, and recently we received a lot of crash reports from users. It sometimes crashes the Chrome browser, and sometimes it loads indefinitely.
This is how our system is designed: our page is a light weight HTML5 page, there is no code behind in our page (i.e., no server-side binding). Once the page is loaded in browser, it fires up AJAX requests to load everything it needs, from look up values to business model, and then it uses JavaScript to bind it to drop down lists and other DOM elements.
This is the screen shot from the Chrome browser's developer tool:
Is 91 HTTP requests too much for a browser? How do I eliminate that this is not the cause of browser and application crashes?
More posts by @Alves908
1 Comments
Sorted by latest first Latest Oldest Best
Apart from the comments from Zistoloen and John Conde, the first thing to do is test yourself the situation. Replicate the situation and environment reported by the users to see if the problem happens to you.
If you can't replicate completely the environment, at least try to do it as close as you can.
Test the load of the site in many browsers, preferably on private sessions and with a tor session or any similar service, that should generate a load with a completely different set of proxies which will affect the cache between the actual hosting company and your computer.
In a local session, against the development server, so a clean load of the site with verbose logging activated and check to see if there is any problem there. If there is a misconfiguration on the server, it may be keeping the browser active or on a waiting state which may cause problems. Although a crash seems unlikely.
Test in local environment, and clean cache the load on the system when the browser loads the page, that way you can see if there is any spike on resources.
If you developed the application, go one step at a time, deactivate the most intensive part of the JS and test the application, repeat until the system is stable. This procedure is more effective if you where able to replicate the situation reported by your users and managed to crash the browser.
91 request seems like a lot, and if there are strange, on unmet dependencies between elements that have not being loaded on time, that can cause problems on the V8 compiler of Chrome, which may not be as serious on spidermonkey due to the way it preprocesses the code.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.