5 ms·
This page has some huge issues loading resources. I kept it open as a tab to dive into later and noticed it was still spinning after a long time... I refreshed
by jonknee 10y ago
This page has some huge issues loading resources. I kept it open as a tab to dive into later and noticed it was still spinning after a long time... I refreshed with Developer Tools open and after 2 minutes over 100MB had been transferred!
It appears the screencast video is to blame, it is not only huge (~70MB), but it keeps getting downloaded instead of just replaying. I just checked the console again and the page is now up over 300MB downloaded. Glad I wasn't on mobile data!
Update: I downloaded the video and ran it through ffmpeg to see how much space could be saved... Original size 72.2MB, new size 1.7MB. Screencasts obviously compress very well, but this was pretty surprising. You could easily optimize this down further and probably half the size yet again.
ffmpeg -i hello-world_2.mp4 -vcodec libx264 -preset veryfast smaller.mp4
- grigio 10y agoI confirm, the video is too big
- timneutkens 10y agoWe're on it, thanks!
- eclark 10y agoThe size is much smaller. As for downloading multiple times: I don't think it's happening though it looks like it. The server is sending 206 Partial Content for the video. This is why the file downloads multiple ranges if the page is left open for a while. The first response if for a chunk of the file. The next few are for different chunks. Then it repeats. ~8 Mins on the page and I have 5 downloads of the hello-world_2.mp4 that went to the server. I have 4 that were able to be served from the disk cache.
- deleted 10y ago[deleted]
- asaddhamani 10y agoIt really is a sad state of affairs that this is unsurprising.
- BinaryIdiot 10y ago> It appears the screencast video is to blame, it is not only huge (~70MB), but it keeps getting downloaded instead of just replaying. Question, do you have caching disabled when devtools is open? If so that'll cause it to continually re-download. Looking at the markup it shouldn't redownload but devtools will make that happen quite easily. Completely agreed about the size though; geeze.
- user5994461 10y agoDevtool doesn't impact caching.
- nostoc 10y agoUnless, of course, you have the "Disable cache" checkbox enabled.
- iancarroll 10y agoIt does when you click "Disable cache" (and maybe forget to turn it off). But it doesn't appear to affect this, at least.
- Kiro 10y agoWhy do you post about things you obviously have no clue about? Any web developer knows that you use DevTools to disable caching.
- user5994461 10y agoWhy do you reply about things you obviously have no clue about? DevTools on Firefox doesn't disable caching. DevTools on Chrome doesn't disable caching. There is a button to disable cache that's off by default.
- BinaryIdiot 10y ago> DevTools on Chrome doesn't disable caching. There is a button to disable cache that's off by default. I simply asked the poster if they had caching disabled when they had devtools opened as I ran into this exact issue before. Why does the default matter if I asked them if they had it enabled? I don't really understand what you're trying to get at with your series of replies.
- heipei 10y agoNot just that, also rather large fetch (AJAX) requests to get all of the JavaScript, or so it seems: https://urlscan.io/result/36f1ada1-a7d1-4b4f-8e65-8269135e104e https://urlscan.io/result/36f1ada1-a7d1-4b4f-8e65-8269135e10... (gotta be a new record for initial page load size)
- Rauchg 10y agoThank you @jonknee. https://twitter.com/rauchg/status/846474015178866689 https://twitter.com/rauchg/status/846474015178866689