AmpersandJS / ampersandjs.com

The documentation site for ampersand.js
http://ampersandjs.com
MIT License
51 stars 40 forks source link

ampersandjs.com is slow #160

Open klaemo opened 9 years ago

klaemo commented 9 years ago

Hey there, during my work with ampersand I've opened [ampersandjs.com/docs]() quite a lot and I noticed that it's pretty slow. I took more than 6s to load with a primed cache. It's a static site that rarely changes. It should load immediately. Here's the waterfall chart:

ampersandjs-site

There seem to be a couple of problems. The main offender is obviously fonts.css. Are custom fonts really necessary for a documentation site? Also, I think css and js files should all be concatenated. Maybe even the html page could be cached for a day or so.

I'd really like to start a discussion about improving this :)

klaemo commented 9 years ago

The following files don't have any cache headers: http://ampersandjs.com/public/css/main.css http://ampersandjs.com/public/css/normalize.min.css http://ampersandjs.com/public/images/icon-arrow.svg http://ampersandjs.com/public/images/icon-link.svg http://ampersandjs.com/public/js/highlight.pack.js http://ampersandjs.com/public/js/setup.js

HenrikJoreteg commented 9 years ago

agreed, we should fix this.