Closed Shadowen closed 9 years ago
I think the optimization should be mostly in the landing page. The loading of that page for first-time clickers will include all your site resources (javascript, css) that you share in the layout. What's the purpose of the current one being a picture of your room that pans around?
I don't recommend large images as backgrounds anyways...
It was kinda a placeholder because I'm not sure what to use as a front page. The panning one is an experiment with CSS animations. Anyways, the picture seems to load fine on desktops. Maybe I just have a good internet connection o.O I'll think about it.
Also I don't think all the JS/CSS loads on the first page, since it's included on an as-needed basis. Most of the loading time comes from Bootstrap since I load the full version of it. (I can selectively load Bootstrap components if it's a problem).
You should take a look at the network diagnostics: Some alarming numbers there include the 2.2MB transferred (basically your large image, which took 1.96s to load) The landing page also loads jquery, bootstrap, and header.js (which were cached for me this time, so it would take longer for first-time users). One thing I noticed is that your jquery code is purposely not caching bootstrap for some reason:
I know the image(s) is large; this issue is all about compressing the images (which are uncompressed at the moment).
JQuery and Bootstrap need to be loaded for almost everything, so the best I can do is find a better CDN.
Otherwise, I can't do anything about jquery not caching bootstrap.. I'm loading bootstrap directly from the CDN in the HTML file... I'm investigating why JQuery is even involved in the loading process now.
I figured out the jQuery caching issue.. I had multiple tags loading the same source file. That's resolved, so pages load about 3x faster now. See dfcc736a2d5b59238ad7c399648801695f003637
Yea, it all really comes back to large images. I haven't looked at network statistics too much yet though; I'm still thinking about content management. Writing pages by hand is such a pain...
jQuery is requesting files multiple times and explicitly not caching themJQuery was followingheader.html
andfooter.html
's<script>
and<link>
tags and loading them as well. They have been removed. Fixed in dfcc736a2d5b59238ad7c399648801695f003637.