Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

page loads twice in Google chrome

Does anyone have any problems with Page_Load being executed twice in Google Chrome? It's a short question, i do not know what else to explain...

I have a simple asp.net page and in Firefox and IE all it's working fine. But in Chrome the Page_Load is fired twice...

Anyone has any ideas why?

Later EDIT: - what is strange is that i have 4 repeaters... binded with random values. The random methods are twice fired (because of page loaded twice) but the repeaters takes the INITIALLY values...so, the 2nd post back is somehow raised after the rendering step.

3rd edit: It happens ONLY at the refresh!

Solution (in my case): There was an empty img src, and that was the cause

like image 927
Cristian Boariu Avatar asked Jan 05 '10 21:01

Cristian Boariu


People also ask

Why does my Google Chrome load twice?

This issue can occur when the incorrect user profile has been corrupted or removed from the Google Chrome™ browser settings.

How do I stop a page from loading another page?

Chosen solution. You can press the ESC key to stop loading a page.


2 Answers

I notice this same issue in IE if the page contains img tags that don't have a src attribute (or the src is empty, etc). Not sure if Chrome does the same thing, but worth checking, right?

like image 94
Chris Shaffer Avatar answered Sep 22 '22 03:09

Chris Shaffer


For me the problem was because of the extension Firebug Lite for Google Chrome. Once deactivated the page only loads once.

like image 41
Johann Avatar answered Sep 22 '22 03:09

Johann