开发者

How can I improve the loading speed of this web portfolio?

开发者 https://www.devze.com 2023-01-05 09:58 出处:网络
I\'ve been playin with Google\'s Page Speed, and it gave me some tips to improve the loading speed of my site:

I've been playin with Google's Page Speed, and it gave me some tips to improve the loading speed of my site:

http://alexchen.zxq.net/ (original hosting)

http://alexchen.co.nr (URL redirection)

I minified some Javascript files (I didn't compress them), and optimized some images, but it still kind of slow. I'm not very sure 开发者_StackOverflow中文版if I'm overloading something or its because i'm using a shared free hosting (I know, I have to get a .net or .com, but I'm having problems with my credit card right now).

Any suggestions?


In total your homepage loads 2.6mb, 2.4mb of images alone even though you only have a few directly visible. You should defer loading your showcase images like http://alexchen.zxq.net/images/showcase1.png until the thumbnails are clicked. This image is 0.5mb and gets loaded on every homepage visit whether someone visits it or not. See a lightbox javascript lib such as facebox which loads up the image on demand using AJAX.

Think about moving the position of the JavaScript to the bottom. As scripts block parallel downloading you should load these last to allow other elements like images to download. I profiled your site and the jquery seems to take a while to download, blocking other files from starting.

Turn on caching for static elements aswell in order to cut down server requests on second visit.

Install YSlow to get more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号