Current time: 07-15-2020, 08:53 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TTFB & Page speed issue
05-31-2017, 12:16 AM
Post: #4
RE: TTFB & Page speed issue
You're likely misunderstanding the point of CDNs.

As @pmeenan said, there's nothing your CDN can do to fix your HTML asset speed.

https://www.webpagetest.org/result/170521_XX_FJY shows this @ 2.5 secs.

Steps to fix.

1) Dump CloudFlare

2) Dump NGINX (don't even think about it)

3) Setup a LAMP stack using embedded PHP, likely a package like libapache2-mod-php7.1 for Ubuntu + Debian.

4) Tune your LAMP Stack, which include tuning SSL.

CloudFlare fails to set Strict Transport Security. Fixing this allows HTTP2 to start faster, for subsequent page visits.

http://www.webpagetest.org/result/170426_8J_13D8 is a client site I host. This is a good example of the speed you're looking for serving the HTML asset - 158ms vs. your 2.5ms.

CDNs should never cache HTML assets as they can change, so a correctly tooled CDN should never cache your HTML component... so all visitors can see any changes instantly.

This means, only LAMP tuning + also site tooling determine your HTML asset generation + serving speed.

Since you're running WordPress, the process for tuning sites is well defined... Just find a tuning guide + get started.

BTW, a correct tuning guide will start at the bottom of the LAMP stack, so a correct/useful guide will start with items like...

1) use ext4 file system + mount options noatime, dioread_nolock.

2) move /tmp off disk into memory (tmpfs)

3) verify your PHP Opcache runtime stats (I target 50% free memory keys + memory segments)

4) periodically run mysqltuner + mysql-tuning-primer + fix whatever they say to fix

5) enable SAVEQUERIES in your wp-config.php file + check Query Monitor plugin output each time you make a code change + avoid themes/plugins producing excessive database thrash, like the Marketer's Delight theme (122 SELECTs to generate a page) or ACF (which can generate 100s-1000s of SELECTs if incorrectly used).

So tune your LAMP Stack + tune your WordPress code, then look to external sites you're referencing which is also adding a huge amount of time to your page renders.

If you must access external sites, then do so via Javascript, after your PageLoad or DocumentReady event has fired (depends on what you're trying to accomplish).

Like help speeding up your site? Skype me @ ID davidfavor for a quote. Be sure to include your site name in your Skype Add Contact request.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: TTFB & Page speed issue - pmeenan - 05-30-2017, 11:08 PM
RE: TTFB & Page speed issue - pmeenan - 05-30-2017, 11:32 PM
RE: TTFB & Page speed issue - dfavor - 05-31-2017 12:16 AM
RE: TTFB & Page speed issue - GreenGecko - 06-03-2017, 04:18 PM
RE: TTFB & Page speed issue - pmeenan - 05-31-2017, 12:49 AM
RE: TTFB & Page speed issue - dfavor - 06-10-2017, 08:38 AM
RE: TTFB & Page speed issue - GreenGecko - 06-10-2017, 04:00 PM
RE: TTFB & Page speed issue - datadiggers - 06-26-2017, 06:29 PM
RE: TTFB & Page speed issue - GreenGecko - 06-27-2017, 03:48 PM
RE: TTFB & Page speed issue - datadiggers - 06-27-2017, 04:36 PM
RE: TTFB & Page speed issue - GreenGecko - 06-28-2017, 04:59 PM
RE: TTFB & Page speed issue - dfavor - 07-07-2017, 12:03 AM
RE: TTFB & Page speed issue - diesel2 - 07-27-2017, 02:50 AM
RE: TTFB & Page speed issue - GreenGecko - 07-27-2017, 11:33 AM
RE: TTFB & Page speed issue - diesel2 - 08-18-2017, 02:37 AM

Forum Jump:


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