✔️ Magento 2.3.x - COMPATIBLE
❌ Magento 2.4.x - INCOMPATIBLE, but I'm working on releasing a PREMIUM template, optimized for Core Web Vitals and SEO, and much more than basic Magento Luma! 🚀 Stay tuned and follow my new REPO: jq91/M2-AzkarraTheme-for-Core-Web-Vitals-and-SEO for Magento 2.4.x!
- small colors customizations
- "lazy scripts"
- sticky header
- scroll to top button
- up-scroll pined bottom bar
- plus/minus quantity buttons
- "M2-Luma-Feather" icons pack
- close "X" icon in mobile menu
- category products count number (after category title)
- right-slide minicart
- auto-open minicart after added product
- show / hide eye-icon for password input
- possibility to close all product tabs on Mobile
- auto-scroll to system messages
- product video: iframe autoplay on thumbnail click
Speed-up your Magento 2 frontend performance! Google PageSpeed / Chrome Lighthouse over 95/100 points (on Desktop) and over 80/100 points on mobile devices. It's possible!
-
Optimize images 👉 https://tinypng.com
-
Lazyload off-screen images 👉 https://github.com/aFarkas/lazysizes
-
Custom Google fonts load only localy 👉 https://google-webfonts-helper.herokuapp.com/fonts, not from Google server!
3b. For font-family declatarion in style use: font-display: swap;
- Use rel="preconntect" for external resources on your store (add it in custom HEAD scripts in configuration):
- Separate styles for specific pages:
- general (default styles-m.css and styles-l.css fo all pages)
- for cart and checkout (styles-checkout-m.css and styles-checkout-l.css)
- for homepage (styles-home-m.css and styles-home-l.css)
- for catalog/search result (styles-catalog-m.css and styles-catalog-l.css)
- for product (styles-product-m.css and styles-product-l.css)
- for static pages (styles-cms-m.css and styles-cms-l.css)
- for customer pages [login, register, forgott password, customer panel] (styles-customer-m.css and styles-customer-l.css)
- and custom as needed (blog, etc.)
- Always use Magento breakpoint directives in all .less files! (To avoid dupliacation styles in mobile i desktop file! Remember Magento 2 is 'mobile first' RWD 👉 https://absolutecommerce.co.uk/blog/mobile-first-responsive-magento2-theme
👉 See my "starter" .less file: https://github.com/jq91/magento2-handy-snippets/blob/master/_module.less
-
Remove unnecessery scripts and optimize another to load only on used page 👉 https://medium.com/@jahvi/how-to-improve-magento-2-page-speed-insights-score-bb37e8946192
-
Use critical styles 👉 https://jonassebastianohlsson.com/criticalpathcssgenerator/
-
Move scripts from head to footer
-
Enable CSS/JS minification, cache and production mode.
-
Core Veb Vitals:
-
pay attention for 'Above The Fold' elements
-
better LCP: if 'above the fold' is an image or background image (e.g. slider) add to preload tag to this image:
<link rel="preload" as="image" href="path/to/your/image.jpg">
-
NEVER use lazylaod for images that are in 'above the fold'!
-
dalay 3rd party scripts (GTM, Analytics, FB, etc.) 👉 https://github.com/biggerpicturestudio/delaying-3rd-parties ⭐