Сергей Незбрицкий, CTO в Magecom, 11 ноября выступил на Magento Meetup Online #11 с темой «Google Page Insights и Magento 2».
В своем докладе Сергей перечисляет основные проблемы, связанные с Magento 2 Frontend performance. А также он перечислил требования к Google Pagespeed Insights, чтобы сделать Magento 2 френдли.
---
Sergey Nezbritskiy, CTO at Magecom, talks on “Google Page Insights and Magento 2” Magento Meetup Kharkiv Online on November 11th.
Sergey lists the main issues related to Magento 2 Frontend performance in his talk. He also listed the requirements for Google Pagespeed Insights to make Magento 2 friendly.
Magecom: https://magecom.net/careers/
Facebook: https://www.facebook.com/magecomcompany
Instagram: https://www.instagram.com/magecomcompany/
18. Magento
Meetup
Kharkiv
#11
Avoid an excessive DOM size
There is no easy way to fix this, but...
https://web.dev/dom-size/
- disable Page Builder
- download some parts of html content/data with ajax
19. Magento
Meetup
Kharkiv
#11
Serve images in next-gen formats
Consider searching the Magento Marketplace for a variety of third-party extensions to
leverage newer image formats.
https://web.dev/uses-webp-images/
Consider using CDN services which allow converting images on-the-fly.
https://developer.fastly.com/reference/io/format/
https://blog.cloudflare.com/a-very-webp-new-year-from-cloudflare/
20. Magento
Meetup
Kharkiv
#11
Serve static assets with an efficient
cache policy
add webp format and any other missing formats to nginx config cache lifetime section
https://web.dev/uses-long-cache-ttl/
23. Magento
Meetup
Kharkiv
#11
Efficiently encode images
Consider using a third-party Magento extension that optimizes images.
https://web.dev/uses-optimized-images/
https://marketplace.magento.com/apptrian-image-optimizer.html
Consider using CDN services which allow optimizing images.
24. Magento
Meetup
Kharkiv
#11
Todo
● Properly size images
● Reduce JavaScript execution time
● Preconnect to required origins
● Avoid multiple page redirects
● Use video formats for animated content
● Reduce the impact of third-party code
● Avoid non-composited animations
● Lazy load third-party resources with facades
● Avoid enormous network payloads
● Avoid chaining critical requests
● User Timing marks and measures
● Minimize main thread work
● Ensure text remains visible during webfont load