WordPress Developer Ukraine, Kyiv
Defer JavaScript and CSS Loading in WordPress to Improve Page Speed

Defer JavaScript and CSS Loading in WordPress to Improve Page Speed

Defer JavaScript and optimize CSS loading in WordPress Render-blocking JavaScript and CSS are one of the most frequent reasons for poor Lighthouse scores. A normal <script src> in the <head> stops HTML parsing until the file is downloaded and executed. The defer attribute lets the browser download the script in the background and run it…
WordPress 5.5 Lazy Loading Images: Override loading=eager for LCP Performance

WordPress 5.5 Lazy Loading Images: Override loading=eager for LCP Perfor ...

WordPress 5.5 lazy-loads images: keep the hero image eager Browsers support native lazy loading with the loading="lazy" attribute since Chrome 76 (July 2019) and Firefox 75 (April 2020). WordPress 5.5, released on August 11, 2020, adds the attribute automatically to images in post content, in text widgets, to avatars and to images output with wp_get_attachment_image(),…
Async or defer for script tag in WordPress

Async or defer for script tag in WordPress

Using function wp_enqueue_script for add scripts in WordPress does not allow to indicating attributes of a script such as async defer etc. Here, we describe how resolve this problem and also use wp_enqueue_script for enqueue of jQuery, Bootstrap by using CDN.