Anzeige
Anzeige

Más contenido relacionado

Similar a Web Server SEO: Making your TTFB faster!(20)

Último(20)

Anzeige

Web Server SEO: Making your TTFB faster!

  1. Web Server SEO: Making your TTFB faster! Ash New Senior SEO Manager @ Virgin Media O2 Deck: shorturl.at/cluQU @AshNewSEO
  2. WEB SERVER SEO
  3. Fast #brightonSEO | @AshNewSEO
  4. Fast Reliable #brightonSEO | @AshNewSEO
  5. Fast Reliable Crawlable #brightonSEO | @AshNewSEO
  6. Fast Reliable Crawlable #brightonSEO | @AshNewSEO
  7. Fast #brightonSEO | @AshNewSEO
  8. Why am I here? #brightonSEO | @AshNewSEO
  9. + #brightonSEO | @AshNewSEO
  10. Functional Teams Cross-Functional Teams Marketers Developers Product Managers Delivery Team #brightonSEO | @AshNewSEO
  11. What an SEO needs to know / not everything an SEO could know
  12. How do we make it fast?
  13. The metric to measure the time between a request for a resource and when the first byte of a response arrives. TTFB Time To First Byte GOOD NEEDS IMPROVEMENT POOR 800 ms 1800 ms #brightonSEO | @AshNewSEO
  14. LCP TTFB Resource Load Delay Resource Load Time Element Render Delay HTML Document LCP Resource Document Stylesheet Image Script Time #brightonSEO | @AshNewSEO TTFB precedes every other meaningful user experience metric
  15. Redirects Cache DNS TCP Request Response Processing Load #brightonSEO | @AshNewSEO TTFB Back-end Front-end Browser starts processing first byte
  16. MINIMISE REDIRECTS
  17. Redirects Cache DNS TCP Request Response Processing Load #brightonSEO | @AshNewSEO TTFB Back-end Front-end Browser starts processing first byte
  18. Each redirect can add up to 80ms to TTFB Source: Matthew Edgar 2019 Case Study https://www.matthewedgar.net/do-redirects-add-to- website-speed/ #brightonSEO | @AshNewSEO
  19. Good Redirects No Redirects Request for Page A Loads Page B Server response for page B #brightonSEO | @AshNewSEO
  20. Good Redirects One Server-side Redirect Server redirects to page B Request for Page A Loads Page B Server response for page B #brightonSEO | @AshNewSEO
  21. Bad Redirects Redirect Chains Server redirects to page B Request for Page A Loads Page C Server response for page C #brightonSEO | @AshNewSEO Server redirects to page B
  22. Bad Redirects Client-side Redirects Request for Page A Loads Page B Server response for page B #brightonSEO | @AshNewSEO Server response for page A Loads Page A then redirects to page B
  23. UTILISE CACHING
  24. Redirects Cache DNS TCP Request Response Processing Load Cache #brightonSEO | @AshNewSEO TTFB Back-end Front-end Browser starts processing first byte
  25. Caching stores copies of resources in a temporary storage location, called a cache, for faster access Caching Cache #brightonSEO | @AshNewSEO
  26. Cache Levels Browser Level Caching CDN/Proxy (Intermediate Level) Caching Server Level Caching #brightonSEO | @AshNewSEO
  27. Cache Levels Requests: page.html Response: page.html Requests: img.jpg Browser cache serves previously stored img.jpg CDN serves page.html Response: img.jpg Requests: app.js Origin server serves original app.js file Browser Cache CDN Origin Server Response: app.js Distance from user app.js not found on CDN CDN stores app.js for faster retrieval #brightonSEO | @AshNewSEO
  28. Key caching concepts to understand TTLs (Time- to-live) “Purging” / Cache-busting Cache-hit ratio #brightonSEO | @AshNewSEO
  29. Use a CDN! Improves performance Improves reliability Improves security #brightonSEO | @AshNewSEO
  30. SPEED UP DNS
  31. Redirects Cache DNS TCP Request Response Processing Load DNS #brightonSEO | @AshNewSEO TTFB Back-end Front-end Browser starts processing first byte
  32. DNS = Domain Name System
  33. What is DNS? “www.o2.co.uk” www.o2.co.uk = 13.107.237.67 13.107.237.67 1 2 #brightonSEO | @AshNewSEO
  34. Use a premium DNS provider Optimising DNS Custom DNS configuration #brightonSEO | @AshNewSEO
  35. UPGRADE TRANSPORT PROTOCOLS
  36. Redirects Cache DNS TCP Request Response Processing Load TCP Request Response TCP #brightonSEO | @AshNewSEO TTFB Back-end Front-end Browser starts processing first byte
  37. Transmission Control Protocol (TCP) Establishes the connection
  38. Transmission Control Protocol (TCP) Establishes the connection Ensures data is transferred correctly
  39. #brightonSEO | @AshNewSEO Ensures data is secure. Required for HTTPS Transport Layer Security (TLS) / SSL
  40. #brightonSEO | @AshNewSEO HyperText Transfer Protocol (HTTP) Transfers text with links to other documents (HyperText)
  41. Upgrade to TLS 1.3 #brightonSEO | @AshNewSEO TCP + TLS 1.2 TCP + TLS 1.3 200ms 300ms Time
  42. Upgrade to HTTP/2 #brightonSEO | @AshNewSEO Time HTTP/1.1 HTTP/2
  43. What about QUIC + HTTP/3? #brightonSEO | @AshNewSEO TCP + TLS 1.3 UDP + QUIC 200ms 100ms Time
  44. Browser/Client Support #brightonSEO | @AshNewSEO Global Support HTTP/2 Since 2015 97% TLS/1.3 Since 2020 95% QUIC + HTTP/3 2020 Requires enabling 2020 2021 75% caniuse.com https://http2.pro/check
  45. REDUCE THE LOAD
  46. Redirects Cache DNS TCP Request Response Processing Load Request Response #brightonSEO | @AshNewSEO TTFB Back-end Front-end Browser starts processing first byte
  47. Minify Code Use Compression Optimise Images Reduce the load Refactor & Stream Code Optimise Fonts Optimise Third-Party Scripts Most Impactful Least Impactful Harder Easier
  48. Use Compression VS Brotli (BR) GZIP Compresses More Compresses Faster #brightonSEO | @AshNewSEO
  49. Code refactoring Code streaming #brightonSEO | @AshNewSEO
  50. UPGRADE YOUR INFRASTRUCTURE
  51. Redirects Cache DNS TCP Request Response Processing Load Back-end Front-end Browser starts processing first byte Request Response #brightonSEO | @AshNewSEO TTFB
  52. Users connection speed & quality Severs connection speed & quality Server software & hardware Users browser & hardware Limiting Factors Distance from user USER / CRAWLER ORIGIN SERVER DATA TRANSFER Data packet size Request handling
  53. Severs connection speed & quality Server software & hardware Users connection speed & quality Users browser & hardware Limiting Factors Distance from user USER / CRAWLER ORIGIN SERVER DATA TRANSFER Data packet size Request handling
  54. Severs connection speed & quality Server software & hardware Users connection speed & quality Users browser & hardware Limiting Factors Distance from user USER / CRAWLER ORIGIN SERVER DATA TRANSFER Data packet size Request handling
  55. Maximise Specs Dedicated vs Shared Hosting Maximised Memory Better CPUs (with more cores) https://ismyhostfastyet.com/ #brightonSEO | @AshNewSEO
  56. Most Common Web Server Software Source: W3Techs https://w3techs.com/technologies/overview/web_server
  57. Reverse Proxy / Load Balancing Load Balancer o2.co.uk/shop priority.o2.co.uk o2.co.uk/shop
  58. How do we make it fast? Minimise redirects #brightonSEO | @AshNewSEO
  59. How do we make it fast? #brightonSEO | @AshNewSEO Utilise caching + Use a CDN!
  60. How do we make it fast? #brightonSEO | @AshNewSEO Use a premium DNS service
  61. How do we make it fast? #brightonSEO | @AshNewSEO Upgrade your transfer protocols
  62. How do we make it fast? #brightonSEO | @AshNewSEO Reduce the load
  63. How do we make it fast? #brightonSEO | @AshNewSEO Upgrade infrastructure / Use a premium hosting service
  64. CREDITS: This presentation template was created by Slidesgo, including icons by Flaticon, and infographics & images by Freepik Thank You

Hinweis der Redaktion

  1. Key points Web server SEO is the process of helping us meet those goals by ensuring our servers are: Fast & Reliable In this talk we will break down the key elements of web server set ups 2 topics into understandable con the key elements of web server set ups thay
  2. Key points Web server SEO is the process of helping us meet those goals by ensuring our servers are: Fast & Reliable In this talk we will break down the key elements of web server set ups 2 topics into understandable con the key elements of web server set ups thay
  3. Key points Web server SEO is the process of helping us meet those goals by ensuring our servers are: Fast & Reliable In this talk we will break down the key elements of web server set ups 2 topics into understandable con the key elements of web server set ups thay
  4. Key points Web server SEO is the process of helping us meet those goals by ensuring our servers are: Fast & Reliable In this talk we will break down the key elements of web server set ups 2 topics into understandable con the key elements of web server set ups thay
  5. Key points Web server SEO is the process of helping us meet those goals by ensuring our servers are: Fast & Reliable In this talk we will break down the key elements of web server set ups 2 topics into understandable con the key elements of web server set ups thay
  6. Key points
  7. Time to First Byte (TTFB) is a foundational metric for measuring connection setup time and web server responsiveness
  8. Redirects are naturally hard to avoid in our industry, but if they are necessary then they should be limited to 1
  9. Redirects are naturally hard to avoid in our industry, but if they are necessary then they should be limited to 1
  10. Redirects are naturally hard to avoid in our industry, but if they are necessary then they should be limited to 1
  11. Redirects are naturally hard to avoid in our industry, but if they are necessary then they should be limited to 1
  12. Service workers
  13. Improves performance by reducing the need to retrieve data over networks or from storage mediums
  14. There are several levels at which caching can occur: Browser caching: This type of caching occurs in the client's web browser and stores copies of resources locally on the client's computer. When a client makes a request for a resource that is already stored in the browser cache, the browser can serve the cached copy instead of sending a new request to the server. Intermediate caching: This type of caching occurs at the network level, typically in a proxy server or content delivery network (CDN). Intermediate caching stores copies of resources that are shared among multiple clients, so that subsequent requests for the same resource can be served more quickly. Varnish is an example of an intermediate cache. Server caching: This type of caching occurs on the origin server, and stores copies of resources that are specific to a particular client or session. Server-side caching can reduce the load on the server by serving repeated requests more quickly, but it does not reduce the network traffic between the client and the server.
  15. A cache hit ratio is a measurement of how many content requests a cache is able to fill successfully - aim for a high cache hit ratio. TTL stands for Time to live, it is the amount of time you can set for data to remain valid before it is discarded. Beware of stale content.
  16. Key points For the majority of you simply making sure we use a premium DNS provider will be enough to make a difference to your TTFB. However there are ways you can optimise your DNS configurations but it’s best to work with someone who knows what they are doing to execute this.
  17. TLS was released in 2018 but has been more widely used by browsers since 2020
  18. HTTP/2 uses multiplexing which allows it to have multiple TCP connections open at once. This results in the ability for the server to receive and send multiple requests at once. Saving valuable page load time.
  19. QUIC (pronounced "quick") is a general-purpose[2] transport layer[3] network protocol initially designed by Jim Roskind at Google. User Datagram Protocol (UDP) is a simpler, connectionless Internet protocol wherein error-checking and recovery services are not required. With UDP, there is no overhead for opening a connection, maintaining a connection, or terminating a connection; data is continuously sent to the recipient, whether or not they receive it. QUIC (Quick UDP Internet Connections): QUIC is a transport layer protocol developed by Google to improve the performance of web applications by reducing latency and providing better congestion control compared to traditional TCP. QUIC is built on top of User Datagram Protocol (UDP) instead of TCP, which helps eliminate some of the delays associated with TCP's connection establishment and congestion control mechanisms.
  20. https://www.catchpoint.com/blog/brotli-compression https://kinsta.com/blog/brotli-compression/
  21. Key points: User Limiting factors start with the speed and bandwidth of the users connection to a server. They will most likely be connecting via a broadband or mobile network. Let’s hope they are with Virgin Media to benefit from the UK’s fastest network. Another minor limiting factor can be the users browser choice, thats why its so important to consider the experience of users who may still be using browsers with poor rendering engines such as internet explorer. A users hardware these days is not much of consideration but we can’t discount that some people may still use a very old phone or computer. We can’t influence those parts but we can ensure that our code and server set up is as optimised as possible to best serve users with slow networks and old software & hardware. Server The areas we can influence however are the basis for this talk and
  22. Key points: User Limiting factors start with the speed and bandwidth of the users connection to a server. They will most likely be connecting via a broadband or mobile network. Let’s hope they are with Virgin Media to benefit from the UK’s fastest network. Another minor limiting factor can be the users browser choice, thats why its so important to consider the experience of users who may still be using browsers with poor rendering engines such as internet explorer. A users hardware these days is not much of consideration but we can’t discount that some people may still use a very old phone or computer. We can’t influence those parts but we can ensure that our code and server set up is as optimised as possible to best serve users with slow networks and old software & hardware. Server The areas we can influence however are the basis for this talk and
  23. Key points: User Limiting factors start with the speed and bandwidth of the users connection to a server. They will most likely be connecting via a broadband or mobile network. Let’s hope they are with Virgin Media to benefit from the UK’s fastest network. Another minor limiting factor can be the users browser choice, thats why its so important to consider the experience of users who may still be using browsers with poor rendering engines such as internet explorer. A users hardware these days is not much of consideration but we can’t discount that some people may still use a very old phone or computer. We can’t influence those parts but we can ensure that our code and server set up is as optimised as possible to best serve users with slow networks and old software & hardware. Server The areas we can influence however are the basis for this talk and
Anzeige