Reputation: 18338
I am using new-relic and for my website, the homepage is taking 8 seconds on average to be fully loaded. The network requests are fast, but the dom and page rendering are whats slowing it down. I have google +, facebook, twitter share buttons and bxslider.
When I run it in my browser it takes 2-4 seconds. I am not very familiar with how to optimize frontend performance. I am pretty shocked it is taking that long.
If anyone could give me tips to speed it up; that would be great.
I tried to figure out how to use google chrome profiler tool, but it says 80% idle.
The website is http://phppointofsale.com
Upvotes: 2
Views: 1243
Reputation: 5143
As an additon to @McCheesiIt's answer +1
Using bxslider, try to add the property preloadImages
$('#features').bxSlider({
auto: true,
pause: 8000,
preloadImages: 'all' // or 'visible'
});
Put your <script></script>
tags in the <head>
section or just before the closing body tag </body>
BTW: I have a very slow DSL line (8'000Kbytes DL / 15Kbytes UL) and your site loaded in 3.00 seconds, which is acceptable.
Upvotes: 1
Reputation: 9965
Understand the best practices fundamentals, reading:
There are several other diagnosis tools like Google Chrome Audit Panel. Firefox and IE have similar tools.
Use a tool for automatize these main good practices. Two good tools for that are: Grunt.js and Gulp.js. Here you have an introduction to Gulp.
I checked you site right now and these are some YSlow recomendations:
There are some others but those are the principals.
In conclusion the main recomendation is to minify and join: all css files in 1 file, all js files in 1 file, and all images you can in 1 css sprite. This is better done with Gruntjs or Gulpjs but if you need a quick and dirty way, you can use online tools like:
Upvotes: 2
Reputation: 12213
I think the profiling tool you are using might have issues. In my PC (Windows 7, Chrome 34.0.1847.131) your website loaded in more or less 2 seconds. So i run some tests with various tools to see what is going on.
plusone.js
which is 247ms and jquery.bxslider.js?v=1.0
, jquery.fitvids.js?v=1.0
, jquery.slicknav.min.js?v=1.0
, functions.js?v=1.0
each of them take 227ms.Now the are some technics that you can use to speed up your site. Based on the previous tools i would suggest specific for your site:
<img class="feature-img scale" src="img/multiple_devices.png" alt="">
is missing width and height attributesThese and many more information you can get tehm from the links provided.
Upvotes: 5
Reputation: 355
From visiting your site I think your reports are being skewed from the calls to your adroll.com and social media. A good tool to use here is YSlow: I ran it quick on your site and this would be the one I would address first:
Grade F on Make fewer HTTP requests
This page has 21 external Javascript scripts. Try combining them into one.
This page has 8 external stylesheets. Try combining them into one.
Upvotes: 3