Discuss Scratch

jvvg
Scratcher
1000+ posts

It takes over 200 HTTP requests to load the front page

I was looking at the network log for fun, and saw that just to load the front page of this website, it took 215 HTTP requests. While I understand that each project thumbnail is a request, there was a lot of waste in the CSS. I looked at each category, and it breaks down like this:
  • Documents: 1
  • CSS Stylesheets: 27
  • Images: 153
  • Scripts: 32
  • AJAX: 2
While not much can be done about images, 27 CSS stylesheets is insane. That can easily be cut down by a lot. Ideally, there would only be one, but there should be a lot fewer than 27. I also think that 32 JS files is way too much. For the same stuff I said about CSS, that would ideally only be one file.
While this isn't a huge deal for me (I have a fast internet connection and browser), this might be an issue for those who have slower connections or browsers, 5 requests of 100KB each takes a lot more computational power than 1 500KB request.
Please, try to group the CSS and JS more so there are fewer files! If you still need them separated for coding purposes, then just use server-side includes.


Professional web developer and lead engineer on the Scratch Wiki
Maybe the Scratch Team isn't so badWhy the April Fools' Day forum didn't work last year
Greenatic
Scratcher
100+ posts

It takes over 200 HTTP requests to load the front page

This should be improved, but at least it's working.

Windows 7 x64, Internet Explorer x64 and x32. Chrome.
nXIII
Scratcher
1000+ posts

It takes over 200 HTTP requests to load the front page

It's in development. Obviously they'll concatenate and minify the scripts and stylesheets at some point, but for fast development it's easier to leave them like that for now.

nXIII · GitHub
Mazdafreak
Scratcher
100+ posts

It takes over 200 HTTP requests to load the front page

Yeah, it almost crashed my computer when I first logged on. It's kind of ridiculous, but I realize the Scratch Team is probably working hard to fix this and it should be resolved soon.

Powered by DjangoBB