png file sizes are huge, specially for bigger images, convert it to webp to drastically reduce the file size.
If not provided by design, use this online tool to convert images to webp: https://bulkresizephotos.com/en
For example, if the container is only 300px, only serve at max 300px width image, anything exceeding that would be a waste.
If you need to make it look crisp/better on retina screen, upload an @2x version of the image and utilize the retina js, which will automatically replace the original image with the @2x only when it is supported, instead of using the retina version as the initial, which would be a waste for non-retina users. (page testers will flag this as oversized, which results to lower score)
Sometimes, the client/user updates the images, and they would assign big images, it is important to add codes to only serve the appropriate image size, use the add_image_size wordpress function for this.
Use chrome web browser’s built-in page test tool to view the list of recommendations to improve the score.
Inspect > Lighthouse > Analyze page load https://prnt.sc/lbf-kkxFPE92
Below are some of the recommendations and how to address them.
This is affected by the state/settings of the server and the php codes it executes.
Minimizing the plugin usage means lesser codes to run.
Unoptimized or resource extensive custom codes also affects this.
Leverage wordpress transients for caching heavy queries, making them load quicker on subsequent requests.
This lists all URLs blocking the first paint of your page. To address this, we need to extract the critical css/js.
And load it inline, the rest non-critical codes will be deferred (loaded later when needed or after the initial complete load).
read more:
https://developer.chrome.com/docs/lighthouse/performance/render-blocking-resources/
We will use wp-rocket plugin to automate this.
the plugin works by processing each page, it will identify the critical css, load it inline, and the rest will be deferred. Note, that the plugin will not do this for front-end users that are logged in to wordpress.
These are the settings to enable on plugin for this (already set by default):
CSS: https://prnt.sc/_G1OLNPbnw16
– Optimize CSS Delivery
– Load CSS Asynchronously
JS: https://prnt.sc/jQ-FCjpFpQew
– Load JavaScript deffered
– Delay JavaScrpt execution
in some cases, a site might have issues so test thoroughly and adjust as needed (test with a non-logged in user/incognito)
This is the largest contentful element painted within the viewport which is dynamically identified by the tester through some criteria (this can change per page load). The goal is to make this element load as quickly as possible, prioritizing it above other resources.
These are some of the common culprits on having low score with this metric:
by default, wordpress adds lazyload attributes automatically to image tags https://prnt.sc/spXsr1MtuRUu
We need to remove or change this to loading=”eager” for images above the fold which will likely to be selected as LCP element.
Note, for all other images (below the fold) apply lazy loading
Setting an entrance animation (via elementor settings) will only show that element once elementor has fully loaded which delays this by quite a bit. Remove entrance animations to elements that are likely to be identified as LCP element, including it’s container.
convert images to webp format for lower file size.
Any images below the fold should be deferred to make the initial load as quick as possible. Apply lazy loading to offscreen images.
For older projects, the codes might be missing of is commented out, get the codes at our latest big daddy template js: https://prnt.sc/onT6LM5YoKiW css: https://prnt.sc/Wit-7344vVhn
Inherently, elementor uses alot html elements. Using some elementor extensions with too many nested elements increases this further. When developing, just keep it as minimal/simple as possible.
This is similar to the lighthouse tool above, It may have some other recommendations not covered on the previous test, double check and go through each.
This is similar to the tests above, It may have some other recommendations not covered on the previous test, double check and go through each.
Select your desired option below to share a direct link to this page.
Your friends or family will thank you later.