There are 5-6 occurrences of the below script while loading the page and which is adding latency, “Lists the longest tasks on the main thread, useful for identifying worst contributors to input delay.”
Please advise how to fix this?
Remove it and solve the problems natiely it does solve for you.
RocketLoader does restructure and re-arrange your files in the DOM if they are not arranged perfectly. So if RocketLoader does block rendering the page for a long time this means there is much to do, much to improve.
Just test how your page performs with RocketLoader and how without.
If it does perform better with then dont care about the renderblocking as without your site would be even slower.
Best way is to natively optimize your site so RocketLoader can not optimize it even further and then remove RocketLoader.
Am i right that you are using WordPress?
There is nothing to fix, this is how RocketLoader works. It blocks rendering, optimizes your DOM and when finished optimizing it, it does not block rendering anymore. So there is nothing to fix from CloudFlares site but from your site - optimize your Site/Application to do better natively.
Native optimization is alway the best, most powerful and the one that you can kepp independent from what additional services you are using.
Nice reply! I wonder for those of us that use Wordpress, how can we fix those issues? Many times we hire agencies or simply buy existing themes that are beyond bloated, perhaps manually is the only way to do it? We have plenty of server power I would not mind spending in optimizing the site.
Thats exactly not the way to go. You will not need any serverpower for a good cached and good optimized site.
- optimizing your template/frontend-assets.
- Cache statically when possible
- remove unused frontendlibraries
- combine the needed ones and compress them
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.