{"id":17538,"date":"2021-11-12T15:28:26","date_gmt":"2021-11-12T21:28:26","guid":{"rendered":"https:\/\/www.dotcom-tools.com\/web-performance\/?page_id=17538"},"modified":"2021-11-12T15:28:26","modified_gmt":"2021-11-12T21:28:26","slug":"largest-contentful-paint","status":"publish","type":"page","link":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/","title":{"rendered":"Lighthouse Optimizations &#8211; Largest Contentful Paint"},"content":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221; gap=&#8221;25&#8243; equal_height=&#8221;yes&#8221; content_placement=&#8221;middle&#8221; css=&#8221;.vc_custom_1636408663624{padding-top: 100px !important;padding-bottom: 100px !important;background-image: url(https:\/\/www.dotcom-tools.com\/blog\/wp-content\/uploads\/2015\/09\/hero-section-with-description-3320.jpg?id=15799) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}&#8221;][vc_column css=&#8221;.vc_custom_1636409653940{padding-top: 30px !important;padding-bottom: 30px !important;background-color: #e6eaef !important;}&#8221;][vc_custom_heading text=&#8221;<b>Largest Contentful Paint<\/b>&#8221; font_container=&#8221;tag:h1|font_size:40|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1636752168475{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221;][\/vc_column][\/vc_row][vc_row margin_top=&#8221;40&#8243; margin_bottom=&#8221;30px&#8221; css=&#8221;.vc_custom_1636409410012{margin-bottom: 30px !important;}&#8221;][vc_column][vc_custom_heading text=&#8221;What is Largest Contentful Paint?&#8221; font_container=&#8221;tag:h2|font_size:35|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"font-size: 16px;\">We touched on the Largest Contentful Paint, or LCP, metric earlier when we talked about the First Contentful Paint. The Largest Contentful Paint is another of the metrics that make up Google\u2019s Web Vitals. The Largest Contentful Paint measures the time it takes to render the largest content element, which could be an image, heading, text, etc., so that it is visible to the user. This is important because, to the user, if they perceive that content is loading, they are less likely to become annoyed from having to wait until the page loads. The faster content becomes visible within their viewport, the more likely they will stay and interact with your page instead of bouncing from your page. Compared with other metrics, like measuring the DOM load time, the Largest Contentful Paint is a more accurate measurement, as it also factors in what users are seeing and experiencing on the page.<\/p>\n<p>[\/vc_column_text][vc_custom_heading text=&#8221;Lighthouse Audit: Largest Contentful Paint&#8221; font_container=&#8221;tag:h2|font_size:35|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"font-size: 16px;\">Like the First Contentful Paint, the Largest Contentful Paint is a significant factor within the overall Web Vitals score. In fact, the Largest Contentful Paint makes up 25 percent of the performance score, so developers will want to make sure to pay attention to this metric if it shows up as one of the recommended optimization actions in Lighthouse. Again, in terms of page speed, First Contentful Paint and Time to First Byte are useful, but the Largest Contentful Paint metric is a better representation of how your page performs in front of actual visitors. This can be all the difference between a conversion or a lost visitor.  <\/p>\n<p style=\"font-size: 16px;\">The Largest Contentful Paint, like the First Contentful Paint, is measured in seconds. Web Developers will want to aim for an LCP under 2.5 seconds or less. Anything over four seconds is considered a poor score and will require further investigation into what is causing a slow First Contentful Paint. Furthermore, this score must reflect well on both desktop and mobile devices. Mobile devices make up over half of the traffic today, so your sites and pages must also be optimized to load fast, even with less-than-ideal network conditions.  <\/p>\n<p>[\/vc_column_text][vc_custom_heading text=&#8221;Improving Largest Contentful Paint&#8221; font_container=&#8221;tag:h3|font_size:30|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"font-size: 16px;\">There are a variety of issues that can affect the Largest Contentful Paint and we will discuss the methods and techniques that developers can use to improve the Largest Contentful Paint score for their web properties.<\/p>\n<p>[\/vc_column_text][vc_custom_heading text=&#8221;Optimizing Images&#8221; font_container=&#8221;tag:h4|font_size:30|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"font-size: 16px;\">Images typically make up a sizeable piece of the total weight of a web page. Ensuring they are optimized is a critical step in reducing the Largest Contentful Paint metric. Within this category, there are multiple techniques that can be carried out to improve and optimize images to help with reducing the length of time it takes to load the page. The good thing about optimizing images is that it is easy to carry out compared to other, more advanced optimization techniques. Techniques like image compression, or image encoding, which uses an algorithm to reduce the size of images, without affecting the overall quality of the image to users, is just one technique.  <\/p>\n<p style=\"font-size: 16px;\">In addition to that, ensuring that image dimensions are correctly defined helps the browser know how much space is needed for each image, so it does not have to resize images based on the user&#8217;s device later, which takes additional time and system resources. This can be done by manually resizing images or using the srcset attribute, which allows developers to set different image width sizes based on the user\u2019s device. Lastly, for sites that utilize a large banner, or hero image, preloading these images allows the browser to prioritize this when rendering, which can improve your Largest Contentful Paint score. <\/p>\n<p>[\/vc_column_text][vc_custom_heading text=&#8221;Optimize Server Performance&#8221; font_container=&#8221;tag:h4|font_size:30|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"font-size: 16px;\">The response time from the server plays another part in helping deliver resources so you can reduce the Largest Contentful Paint on your web pages. One of the first optimization techniques development teams can investigate is optimizing the back-end server code and database queries and making them more inefficient. Related to that, cleaning up or removing any unnecessary third-party plugins can also help, as they consume more system resources and slow down response times. Teams could also opt to invest in upgrading hardware as well, but if the back-end code itself is the bottleneck, then this is only a temporary solution, and you will find yourself back where you started.<\/p>\n<p>[\/vc_column_text][vc_custom_heading text=&#8221;Optimize Server Performance with a CDN&#8221; font_container=&#8221;tag:h5|font_size:30|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"font-size: 16px;\">Lastly, server-side caching, which is typically carried out by utilizing a set of proxy servers within a CDN, is an effective method to reduce latency. Browser caching is also beneficial, but only if users engage in subsequent visits to your pages. Depending on a visitor\u2019s location, a CDN allows content to be delivered faster, as they are served from a node closer to a visitor\u2019s physical location. Additionally, CDNs (Content Delivery Networks) provide automatic caching from your origin server, which is another added benefit. However, investing in a CDN is not as easy as optimizing page content and code, caching, or improving the delivery of server-side code as we discussed in previous sections. It may require a large investment, so the cost may not outweigh the benefits, so it all depends on the goals and requirements of your business.<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row margin_top=&#8221;60&#8243; margin_bottom=&#8221;0&#8243; css=&#8221;.vc_custom_1636595147911{margin-bottom: 15px !important;}&#8221;][vc_column width=&#8221;1\/3&#8243; css=&#8221;.vc_custom_1636595227743{padding-top: 60px !important;padding-bottom: 60px !important;padding-left: 10px !important;background-color: #f6f6f6 !important;}&#8221;][vc_single_image image=&#8221;17233&#8243; alignment=&#8221;center&#8221; style=&#8221;vc_box_rounded&#8221;][vc_custom_heading text=&#8221;<b>Lighthouse<\/b>&#8221; font_container=&#8221;tag:p|font_size:20|text_align:center|color:%232b2b2b|line_height:1&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"text-align: center;\">Lighthouse is an open-source tool that is used to run an audit against your web pages and provides scores and suggestions for improving page performance, accessibility, SEO, and more.<\/p>\n<p>[\/vc_column_text][vc_btn title=&#8221;Learn More&#8221; style=&#8221;flat&#8221; color=&#8221;primary&#8221; align=&#8221;center&#8221; i_icon_fontawesome=&#8221;fas fa-location-arrow&#8221; add_icon=&#8221;true&#8221; link=&#8221;url:https%3A%2F%2Fwww.dotcom-tools.com%2Fweb-performance%2Flighthouse%2F&#8221;][\/vc_column][vc_column width=&#8221;1\/3&#8243; css=&#8221;.vc_custom_1636595173585{padding-top: 60px !important;padding-bottom: 60px !important;background-color: #f6f6f6 !important;}&#8221;][vc_single_image image=&#8221;17284&#8243; alignment=&#8221;center&#8221; style=&#8221;vc_box_rounded&#8221;][vc_custom_heading text=&#8221;<b>PageSpeed Terms<\/b>&#8221; font_container=&#8221;tag:p|font_size:20|text_align:center|color:%232b2b2b|line_height:1&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"text-align: center;\">PageSpeed Insights is a tool created by Google that reports on the performance of a page on both mobile and desktop devices, and provides suggestions on how that page may be improved.<\/p>\n<p>[\/vc_column_text][vc_btn title=&#8221;Learn More&#8221; style=&#8221;flat&#8221; color=&#8221;primary&#8221; align=&#8221;center&#8221; i_icon_fontawesome=&#8221;fas fa-location-arrow&#8221; add_icon=&#8221;true&#8221; link=&#8221;url:https%3A%2F%2Fwww.dotcom-tools.com%2Fweb-performance%2Fpagespeed%2F&#8221;][\/vc_column][vc_column width=&#8221;1\/3&#8243; css=&#8221;.vc_custom_1636595196399{padding-top: 60px !important;padding-right: 10px !important;padding-bottom: 60px !important;background-color: #f6f6f6 !important;}&#8221;][vc_single_image image=&#8221;17281&#8243; alignment=&#8221;center&#8221; style=&#8221;vc_box_rounded&#8221;][vc_custom_heading text=&#8221;<b>YSlow<\/b>&#8221; font_container=&#8221;tag:p|font_size:20|text_align:center|color:%232b2b2b|line_height:1&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]<\/p>\n<p style=\"text-align: center;\">YSlow is an open-source website analysis tool that can be used to identify web page performance issues. Learn more about the YSlow to enhance your web pages and the user experience.<\/p>\n<p>[\/vc_column_text][vc_btn title=&#8221;Learn More&#8221; style=&#8221;flat&#8221; color=&#8221;primary&#8221; align=&#8221;center&#8221; i_icon_fontawesome=&#8221;fas fa-location-arrow&#8221; add_icon=&#8221;true&#8221; link=&#8221;url:https%3A%2F%2Fwww.dotcom-tools.com%2Fweb-performance%2Fyslow%2F&#8221;][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221; gap=&#8221;25&#8243; equal_height=&#8221;yes&#8221; content_placement=&#8221;middle&#8221; css=&#8221;.vc_custom_1636408663624{padding-top: 100px !important;padding-bottom: 100px !important;background-image: url(https:\/\/www.dotcom-tools.com\/blog\/wp-content\/uploads\/2015\/09\/hero-section-with-description-3320.jpg?id=15799) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}&#8221;][vc_column css=&#8221;.vc_custom_1636409653940{padding-top: 30px !important;padding-bottom: 30px !important;background-color: #e6eaef !important;}&#8221;][vc_custom_heading text=&#8221;Largest Contentful Paint&#8221; font_container=&#8221;tag:h1|font_size:40|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221; css=&#8221;.vc_custom_1636752168475{padding-top: 30px !important;padding-bottom: 30px !important;}&#8221;][\/vc_column][\/vc_row][vc_row margin_top=&#8221;40&#8243; margin_bottom=&#8221;30px&#8221; css=&#8221;.vc_custom_1636409410012{margin-bottom: 30px !important;}&#8221;][vc_column][vc_custom_heading text=&#8221;What is Largest Contentful Paint?&#8221; font_container=&#8221;tag:h2|font_size:35|text_align:center|color:%232b2b2b|line_height:1.5&#8243; use_theme_fonts=&#8221;yes&#8221;][vc_column_text] We touched on the Largest Contentful Paint, or&hellip;<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":17260,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.6 (Yoast SEO v19.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Lighthouse Optimizations - Largest Contentful Paint | Dotcom-Monitor Tools Blog<\/title>\r\n<meta name=\"description\" content=\"The Largest Contentful Paint is a significant metric within Web Vitals. Learn how to optimize the Largest Contentful Paint and improve the user experience!\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Lighthouse Optimizations - Largest Contentful Paint\" \/>\r\n<meta property=\"og:description\" content=\"The Largest Contentful Paint is a significant metric within Web Vitals. Learn how to optimize the Largest Contentful Paint and improve the user experience!\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Dotcom-Monitor Tools Blog\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dotcommonitor\" \/>\r\n<meta name=\"twitter:card\" content=\"summary\" \/>\r\n<meta name=\"twitter:site\" content=\"@dotcom_monitor\" \/>\r\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#website\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/\",\"name\":\"Dotcom-Monitor Tools Blog\",\"description\":\"Let&#039;s Make the Web a Faster Place.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dotcom-tools.com\/web-performance\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/#webpage\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/\",\"name\":\"Lighthouse Optimizations - Largest Contentful Paint | Dotcom-Monitor Tools Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#website\"},\"datePublished\":\"2021-11-12T21:28:26+00:00\",\"dateModified\":\"2021-11-12T21:28:26+00:00\",\"description\":\"The Largest Contentful Paint is a significant metric within Web Vitals. Learn how to optimize the Largest Contentful Paint and improve the user experience!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dotcom-tools.com\/web-performance\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lighthouse Optimizations\",\"item\":\"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Lighthouse Optimizations &#8211; Largest Contentful Paint\"}]}]}<\/script>\r\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Lighthouse Optimizations - Largest Contentful Paint | Dotcom-Monitor Tools Blog","description":"The Largest Contentful Paint is a significant metric within Web Vitals. Learn how to optimize the Largest Contentful Paint and improve the user experience!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/","og_locale":"en_US","og_type":"article","og_title":"Lighthouse Optimizations - Largest Contentful Paint","og_description":"The Largest Contentful Paint is a significant metric within Web Vitals. Learn how to optimize the Largest Contentful Paint and improve the user experience!","og_url":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/","og_site_name":"Dotcom-Monitor Tools Blog","article_publisher":"https:\/\/www.facebook.com\/dotcommonitor","twitter_card":"summary","twitter_site":"@dotcom_monitor","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#website","url":"https:\/\/www.dotcom-tools.com\/web-performance\/","name":"Dotcom-Monitor Tools Blog","description":"Let&#039;s Make the Web a Faster Place.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dotcom-tools.com\/web-performance\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/#webpage","url":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/","name":"Lighthouse Optimizations - Largest Contentful Paint | Dotcom-Monitor Tools Blog","isPartOf":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#website"},"datePublished":"2021-11-12T21:28:26+00:00","dateModified":"2021-11-12T21:28:26+00:00","description":"The Largest Contentful Paint is a significant metric within Web Vitals. Learn how to optimize the Largest Contentful Paint and improve the user experience!","breadcrumb":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/largest-contentful-paint\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dotcom-tools.com\/web-performance\/"},{"@type":"ListItem","position":2,"name":"Lighthouse Optimizations","item":"https:\/\/www.dotcom-tools.com\/web-performance\/lighthouse\/"},{"@type":"ListItem","position":3,"name":"Lighthouse Optimizations &#8211; Largest Contentful Paint"}]}]}},"_links":{"self":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/pages\/17538"}],"collection":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/comments?post=17538"}],"version-history":[{"count":2,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/pages\/17538\/revisions"}],"predecessor-version":[{"id":17540,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/pages\/17538\/revisions\/17540"}],"up":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/pages\/17260"}],"wp:attachment":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/media?parent=17538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}