Elementor uses the function the class Elementor\Frontend::enqueue_google_fonts to enqueue the Google Fonts used on the website. It doesn't consider to use the font-display: swap to display a system font while the webfont is loaded.
The challenge is develop an otimization inner Cwv_Perf_Optimize\Elementor namespace to load Google Fonts on Elementor with font-display: swap property.
Elementor uses the function the class
Elementor\Frontend::enqueue_google_fonts
to enqueue the Google Fonts used on the website. It doesn't consider to use thefont-display: swap
to display a system font while the webfont is loaded.The challenge is develop an otimization inner
Cwv_Perf_Optimize\Elementor
namespace to load Google Fonts on Elementor withfont-display: swap
property.How to reproduce
public
directory on the root of the projectpublic
directory writable:chmod 777 public/
docker-compose up -d server
db
as database passwordadmin / admin
swap
Expected
The Google Fonts request should be shown on request list when filtered by swap.
Reference