本文介绍了网页加载缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我去清理我的缓存和历史记录后,我的网站主页,它常常需要长达10秒加载,但它是零星的。有时,它加载迅速;其他时候它没有。因为我们是新的,这显然是一个巨大的障碍,以获得客户。

When I go to the homepage of my website after clearing my cache and history, it oftentimes takes up to 10 s to load, but it is sporadic. Sometimes it loads quickly; other times it does not. Because we are new, this is obviously a huge barrier to customer acquisition.

该网站正在通过AWS托管在一个EC2实例,网页是静态的(从数据库被送达,即无数据)。此外,我们的时代第一个字节是非常快 - 0.3秒 - 和加载时间(根据pingdom.com)为0.9和4秒之间。

The website is being hosted via AWS on an EC2 instance, and the homepage is static (i.e. no data being served from a DB). Additionally, our time to first byte is very quick -- 0.3 s -- and the load time (according to pingdom.com) is between 0.9 and 4 s.

我怎样才能更好地解决根本问题?是不是有什么公然错了我的HTML或CSS?我一直没能想出解决办法。

How can I better troubleshoot the underlying problem? Is there something blatantly wrong with my HTML or CSS? I have not been able to figure this out.

网址:www.gather.kitchen

Website: www.gather.kitchen

艾迪生

推荐答案

我没有任何无法登录您的网站,看到的景象对我的加载时间。也许这是你的互联网连接,导致缓慢的加载时间?

I am not having any trouble loading your website, see the picture for my loading times. Maybe it is your internet connection that causes the slow loading times?

这是一个好主意,反正来提高你的网站的加载时间,谷歌将更高的排名,你这样的,你的客户可能会喜欢它;)您可以通过以下修改到你的网站做到这一点

It is a good idea anyway to improve your websites loading time, Google will rank you higher this way and your customers might like it too ;) You can achieve this by making the following modifications to your website

  1. 缩小你的CSS( http://cssminifier.com ),PHP和JavaScript。

  1. Minify your CSS (http://cssminifier.com), PHP and Javascript.

的COM preSS的.htaccess文件图像(谷歌的.htaccess COM preSS图像)。

Compress your images with the .htaccess file (google .htaccess compress images).

永远不要使用过大的图像,这将导致大多数问题与网站的加载时间为图像使用了大量的带宽。

Never ever use images that are too big, this causes the most problems with the loading time of websites as images use a lot of bandwidth.

加载时间网站

这篇关于网页加载缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 02:00