When creating a website for Production, you would want the world to have a great experience using it. One of the best tools for this purpose is the...
For further actions, you may consider blocking this person and/or reporting abuse
** cough **
if (navigator.userAgent.indexOf("Chrome-Lighthouse") > -1) {
Return <PlainTextApp />
} else {
Return <App />
}
** cough **
Nice one 😂
cloaking?
Ah that's what it was called. Yeah obv. Don't do this, tho I've seen references where someone was successful fooling, at least locally the lighthouse audit.
https://mobile.twitter.com/colinbendell/status/1422930517977096199?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1422930517977096199%7Ctwgr%5E%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fwww.searchenginejournal.com%2Fgoogles-not-fooled-by-fake-lighthouse-scores%2F417593%2F
Some browsers don't support webp and you need to detect that.
Metadata removal is a must, we had up to 40kb of trash in it
where can i check lighthouse score? I want to get lighthouse result as svg like below.
Chrome Dev Tools
In fact, no one cares about your LH score.
Google is only interested in LCP, FID and CLS for your SEO score.
The rest is just for show off.
Actually Google does care about Accessibility & Best Practices too. Initially Google refused to index my website because I was using a
div
as abutton
, as for Accessibility:a) Google does care about Accessibility of your website.
b) YOU should care about Accessibility of your website.
Those three are now considered a part of performance.
Nice
The real magic trick is to load js on Interaction.
Good tips! About img optimizing. When you use nextjs, just use the Image tag instead of img, nextjs will optimize it for you.
Yeah, that's a handy one, thanks for pointing out!
But there's one issue with it: you need to have the image locally in the server, for images from external using next's optimization results in worse performance
Thanks. We look forward to continuing with tips for WordPress, in which the user's capabilities are limited by the themes used
I would suggest reading as well about
Thankyou for your insights
Glad you found it helpful :)
Thanks :)
Love this!
drift hunters