Current time: 12-11-2017, 11:09 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very slow start
11-26-2015, 05:41 AM
Post: #1
Very slow start
Our small college site is loading very slow and I am not able to figure out the reason. I will appreciate some help in identifying the problem. Thank you.

http://www.helenefuld.edu
Find all posts by this user
Quote this message in a reply
11-28-2015, 10:11 AM
Post: #2
RE: Very slow start
http://www.webpagetest.org/result/151127_G1_17XN/ ( Dulles and New York aren't too far apart are they? )

There are 2 things to look at.

1. Infrastructure. The 3 second TTFB identifies there's a problem with this. As well as identifying what the problem is ( database, php and / or web server ), you probably just want to throw loads of cache at everything, especially the database and ensure PHP is using an opcode cache.

2. Size. At 2.5MB the front page is a bit porky. Looking at the 'cable' connection results above, there are 110+ files as well, and every one of these incurs a latency overhead that just adds up. A pretty high one at 100ms too! You're just talking about the laws of Physics here, so nothing really mystical here.

Once you've got that running well, add in a front end cache - WordPress has plenty to choose from. You can use these not only to cache stuff, but to combine resources like css and js files, which ( they don't always just work mind! ) will lower the file count, and so reduce the wasted time just going back and forth to the site.

If you get really adventurous, you might want to look at enabling SPDY or HTTP2 on your side, which changes the way in which the browser connections are used, and for the better! Also, you could do with improving your https: configuration... ssllabs.com is a great resource to help you there.
Find all posts by this user
Quote this message in a reply
11-29-2015, 01:06 AM (This post was last modified: 11-29-2015 01:07 AM by avalanch.)
Post: #3
RE: Very slow start
Combining JS & CSS requests would be one great step. I would consider something like this.
https://wordpress.org/plugins/bwp-minify/

Quote:Allows you to combine and minify your CSS and JS files to improve page load time. This plugin uses the PHP library Minify and relies on WordPress's enqueueing system rather than the output buffer, which respects the order of CSS and JS files as well as their dependencies. BWP Minify is very customizable and easy to use.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-29-2015, 08:35 AM
Post: #4
RE: Very slow start
Don't get hung up on minification. When you are compressing the resource delivery - as you are - it makes almost no difference to the size of the file as delivered, and it's debatable as to whether this extra step may actually slow stuff down.
Find all posts by this user
Quote this message in a reply
11-29-2015, 08:38 AM (This post was last modified: 11-29-2015 08:49 AM by avalanch.)
Post: #5
RE: Very slow start
(11-29-2015 08:35 AM)GreenGecko Wrote:  Don't get hung up on minification. When you are compressing the resource delivery - as you are - it makes almost no difference to the size of the file as delivered, and it's debatable as to whether this extra step may actually slow stuff down.

Allows you to combine, into far fewer requests, that's what I was driving at. Anyways, there's no reason to use the minifcation of that or any mod when you can just use mod_deflate.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-03-2015, 06:31 AM
Post: #6
RE: Very slow start
(11-28-2015 10:11 AM)GreenGecko Wrote:  http://www.webpagetest.org/result/151127_G1_17XN/ ( Dulles and New York aren't too far apart are they? )

There are 2 things to look at.

1. Infrastructure. The 3 second TTFB identifies there's a problem with this. As well as identifying what the problem is ( database, php and / or web server ), you probably just want to throw loads of cache at everything, especially the database and ensure PHP is using an opcode cache.

2. Size. At 2.5MB the front page is a bit porky. Looking at the 'cable' connection results above, there are 110+ files as well, and every one of these incurs a latency overhead that just adds up. A pretty high one at 100ms too! You're just talking about the laws of Physics here, so nothing really mystical here.

Once you've got that running well, add in a front end cache - WordPress has plenty to choose from. You can use these not only to cache stuff, but to combine resources like css and js files, which ( they don't always just work mind! ) will lower the file count, and so reduce the wasted time just going back and forth to the site.

If you get really adventurous, you might want to look at enabling SPDY or HTTP2 on your side, which changes the way in which the browser connections are used, and for the better! Also, you could do with improving your https: configuration... ssllabs.com is a great resource to help you there.

Thank you so much.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)