I have an razor MVC page - It is loaded via MVC Portable Areas.
When i browse to the index action, everything loads fine, and works as expected.
...But occasionally Internet Explorer continually shows the loading bar in the status bar. The loading never completes, but the page functionality works fine (so it must have loaded all my resources)
I can't replicate this in firefox, and i have checked the Net tab on firebug to look for slow loading resources, but everything looks fine.
I want to try and cause the loading bar to stop after a set time (i know this could be masking a problem, but i can't seem to find out what is going wrong with the page!!)
Is there a way to do this?
IE does that sometimes. Like you said, there is no actual issues except for the loadfing bar being shown.
To confirm that everything is OK, put an alert("loaded") in your $(document).ready();. If it alerts you, the page was successfully loaded and it's just IE being a buggy little... bugger.
Edit: I missed a bit. Continued:
This is ofcourse only the case if you do not have ajax calls etc on the page that can start a loading sequence after the document has loaded. In that case, use the debugger to check for open connections.
Related
The same application that I am developing works fine on Firefox but not on Chrome.
My application a day ago printed some things on the console, but I removed them today, which means that the actualized version of the application does not print anything on the console.
On Firefox it works, everything renders and there is not prints on the console.
However on Chrome, the app still prints on the console. It means that it is retaining some old state for some reason.
Does that even make sense? The code is already gone (erased), so the only way Chrome is printing the old state on the console is if he is storing it.
On Chrome I also get errors of undefined functions, but they are defined. On Firefox that does not happen.
Have you tried reloading the page? Another thing to try to really get rid of the state that the browser is obviously holding onto is to clear the browser cache.
I have created a site that seem's to work fine in Chrome, IE and Safari however in Firefox v 35.0.1 (on PC and Mac), pages will load fine the first time, but if a Ctrl-F5 refresh is done, the browser will only load parts of the page. I can't get it to reload the page again correctly unless I navigate away from the page and then navigate back to it.
Go here on Firefox 35.0.1 and try reloading the front-page (or any other page for that matter) with Ctrl-F5 a few times...
http://www.cygnusmusic.net
If you don't manage to create a broken page by refreshing it, I'd be keen to know about that too.
On re-loading firefox misses out images and styles in an inconsistent manner, or just displays a 'connection was reset' message over and over again until eventually it decides to part-load the page again. While Firefox is displaying a 'Connection was reset' message, other browsers still have no problem loading and re-loading the same pages.
If this is ultimately resolved as a server issue outside of answers to this question, then I will post any info I have regarding the solution as an answer here.
UPDATE
Here is a link to a video of this occurring on every page of the site, plus a broadband speedtest showing 60Mb+ download speeds...
http://youtu.be/EncGAZs9KAY
Yes, my computer is thrashing during this video, but the loading results are the same on PC's and Macs which are running properly too.
I have a simple web page running locally on my machine using XAMPP.
When in Chrome and I load the page, the page appears to load fine and appears as expected. The icon in the tab continues to show the spinning "loading" icon though, it never stops.
Using Chrome Developer tools I can see the network tab and there is nothing showing as loading
Also if I use Internet Explorer then the page loads and there is no loading icon.
Any idea why Chrome might think it is still loading something?
I had the same problem and found out it was one of my chrome extensions. I tried loading my site in an incognito page and the loading symbol stopped after the page finished. I went through my extensions to see which were not allowed in incognito and eventually found that it was "Mailto: for Gmailâ„¢ 2.4" causing the problem.
For what it's worth after eight years, I had a similar problem where Chrome would not load some images even though they were definitely available, ready, and waiting.
My solution was to close the browser, flushing cookies, history, and all the other internal cruft which had built up over time (using the "Close All & Clean" extension).
Restarting the browser and reloading the page, everything was there, all tickety-boo.
I have no useful theories on why this might've worked but as they say "works for me." Your mileage may vary.
I am using the malihu custom scroller on a website, and I can not figure why it doesn't react the same way in the demo and on my website.
demo
website
Steps :
Scroll down one custom scroller (doesn't matter how much)
Go to another website or click on a link
Hit the 'Back' button
Demo : goes back to where it was.
Website : goes back to top of list
Deactivating the custom scroller plugin solve this specific issue.
Any idea why?
I tested this on the following browsers:
IE9
Chrome 35
FF 30 (Same as OP)
As the OP said, this only works on FF.
FF has a feature called Back-Forward Cache which remembers the entire state of the page, even the js states. This occurs for the duration the browser stays open. You can read more about it here.
If you don't want to have this occur for experience reasons, there are other posts about it on stackoverflow.
Update
If you read the documentation for the Back-Forward Cache, it states that it won't work if you have the Cache-Control: no-cache response headers, which you do have enabled.
This is causing the browser to get fresh data each time instead of caching images and pages locally for faster browsing on later visits.
My webpage gets stuck in loading in Chrome (the little spinning icon on the page tab, and the mouse cursor also stuck in loading version), but the odd thing is everything in the website displays fine. This doesn't happen in Firefox or IE.
Does anyone have any theory to what's causing it? Is it because some asset doesn't exist? For example:
<img src="pic.png">
But "pic.png" doesn't exist?
If that's the case how do I check the code to make sure all assets, including css/js/img/sound/video files all exist as linked from the document? My html file is huge, going line by line and checking would take forever.