问题
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.
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.
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.
Website: www.gather.kitchen
Addison
回答1:
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
Minify your CSS (http://cssminifier.com), PHP and Javascript.
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.
loading times website
来源:https://stackoverflow.com/questions/33789931/homepage-slow-to-load