How can I improve the loading speed of this web po

2019-08-22 07:03发布

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 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?

1条回答
家丑人穷心不美
2楼-- · 2019-08-22 07:28

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.

查看更多
登录 后发表回答