Then, determine which long-term tasks are causing the most problems.
You can then use the following Lighthouse checks to find ideas on how to improve TBT. Their suggestions will include things like:
Reduce the impact of third-party code
Avoid large DOM size
Reduce JavaScript execution time
Minimize main thread work
Submit these recommendations along with a Semrush site audit to your developers to help them prioritize tasks that will minimize FID and improve your site’s page experience.
If you want to dig deeper and pinpoint for yourself exactly where the long tasks are, you can open Lighthouse and inspect the long tasks in the main thread.
Check for long tasks in the main thread
To optimize your FID, you need to understand what is causing poor interactivity. As we discussed above, you need to understand when long tasks are occurring in the main thread.
There are two ways to actually view long tasks:
Use the special recommendation called "Avoid long main thread tasks" in the Lighthouse performance audit
View original track
In both variants, it’s easy if you start a performance ecuador mobile database audit via Lighthouse.
To open Lighthouse, right-click anywhere on the page and select Inspect.
Open Lighthouse
Then, find the Lighthouse report at the top and click the Generate report button.
Find the Lighthouse report and click the Generate report button
Once the report is generated, you can scroll down to drill down into Lighthouse's recommendations, which are labeled as opportunities and diagnostics.
Learn more about Lighthouse recommendations
Use the "Avoid long main thread tasks" advice
Find and turn on the recommendation to avoid long main thread tasks. If at least one task takes longer than 50 milliseconds, it can be used in the audit.