DEV Community

Discussion on: I'm Addy Osmani, Ask Me Anything!

Collapse
 
leftright1 profile image
leftright1 • Edited

Thanks for doing this Addy,

I do have a few questions :

1)
Related to the lighthouse audits and the next-gen image optimization, audit says we should use Jpeg200, JpegXr or WebP format but none of these are known as a cross browser solution. Instead of the webP, almost all browsers do not allow this kind of format.

I am thinking about using USER_AGENT to serve the right format for each browser but that is not known as a sustainable solution, do you have any other suggestions?

2)
Funny thing, on PageSpeed Insights, audit asks me to cache google-analytics.com/analytics.js, do I host this locally as a workaround ?

3)
Also, I found several differences between pageSpeed and lighthouse.

As an exemple :

I'm working on a preliminary project studies phase for a client's website. I'm trying to analyse scores and blocking factors to set my technical recommendations in order to improve their SEO.

As part of this work, i used both of these tools but page speedInsight reveals, on mobile, 88/100. Lighthouse shows a 27/100 score. I know audits are different but it's hard to technically and commercially explain this gap.

This website is not mobile first, weight is around 3,2Mo on mobile... So no optimizations are existing for mobile at the moment.
Between PageSpeed Insights and LightHouse, which one is for you the most able to show the real performance ?

Thanks
Julien