internetarchive / wayback-machine-firefox

Reduce annoying 404 pages by automatically checking for an archived copy in the Wayback Machine. Learn more about this Test Pilot experiment at https://testpilot.firefox.com/
GNU Affero General Public License v3.0
53 stars 17 forks source link

Causing 10+ second page load when there are embedded 404 resources #66

Open ghost opened 7 years ago

ghost commented 7 years ago

(from email)

I noticed this over the past week or two and finally got around to tracking down what was going on today.

I've been noticing slow page load times across many sites over the past (week? could weeks? more?) and had assumed each time that it was my network connection or something.

Today while loading a github page and seeing 10 - 25 second page loads I decided to see what the hell was going on.

Mind you when the problem happens most of the page loads but some assets just seem to sit there forever not loading

After changing to safe mode (no addons) the problem went away and I noticed in the network pane 404'd embedded resources that I hadn't noticed before.

I exited safe mode re-enabling all add-ons and disabling No More 404s and the problem went away.

I suspect that you can reproduce this pretty easily with any page that contains a 404'd image/css/js/etc

I've had this testpilot plugin enabled for quite a while now and only noticed this recently so it might relate to the new No More 404's ui when you encouter a 404 page which came out somewhat recently (the overlayed image of the fox in the truck).

Here's an example of a page that I can see the problem on :

https://github.com/boto/boto/commits/develop

with this 404'd embedded resource

https://camo.githubusercontent.com/3dd22b62d1a7d955bddab9ab6c610e80645b27fd/68747470733a2f2f70797069702e696e2f642f626f746f2f62616467652e737667