Sunday, 22 December 2024
29.5 C
Singapore

WordPress 6.4 boosts website speed through enhanced script loading

WordPress 6.4 significantly improves website speed by introducing intelligent script loading features, offering website developers and visitors a smoother, faster experience.

The newest upgrade to WordPress, labelled version 6.4, brings a bundle of changes aimed at enhancing website speed. These adjustments mainly affect how scripts are loaded on a site’s front-end interface, offering a quicker and smoother user experience.

Making web pages faster with smart script management

Previously, JavaScript files linked to WordPress themes and were loaded without particular instructions for asynchronous loading. As a result, these scripts would stall other from downloading, slowing down the webpage’s loading process.

With this new update, WordPress has introduced strategies for script loading into its core and bundled themes. Specifically, the update leverages ‘defer’ and ‘async’ attributes to improve script loading. These attributes direct the browser to either load scripts in the background (‘async’) or only after the rest of the webpage has loaded (‘defer’). The net effect is a considerable reduction in time for a webpage to become fully interactive.

The technical details of speeding up WordPress

The WordPress 6.4 update includes additional ‘defer’ attributes for JavaScript files that manage elements like navigation menus and embedded media. Likewise, the wp-embed script, responsible for displaying embedded posts, now also uses ‘defer’.

Before this update, there wasn’t a uniform way to include these attributes. However, with a dedicated API introduced in WordPress 6.3 and fully implemented in version 6.4, developers now have a standardised method to control script loading timings.

Moreover, this update rearranges where some scripts are placed within the webpage’s code. Most deferred scripts are moved back into a page’s <head> section. Since these scripts no longer block the page from rendering, the browser can discover and cache them sooner, further boosting website performance.

Certain less crucial scripts, like those for comment replies, are now in the footer but loaded asynchronously using ‘async’. This allows these scripts to load in parallel with other webpage resources.

What this update means for website users

The immediate benefit for the average website visitor is the faster loading of pages. If you’re using a WordPress-based site, you’re likely to experience less ‘jank,’ which means fewer unexpected shifts in page elements once the page has loaded. This update sets the stage for even more speed and performance improvements.

Hot this week

LG introduces 2025 QNED Evo with groundbreaking technology

LG unveils its 2025 QNED Evo TV lineup featuring new AI technologies and true wireless 4K viewing, enhancing the premium television viewing experience.

ZOWIE XL2566X+ review: A 400Hz esports monitor that redefines gaming performance

Experience unmatched gaming performance with the ZOWIE XL2566X+, featuring 400Hz refresh rate and DyAc 2 for esports excellence.

Agentforce 2.0 revolutionises digital labour for enterprises

Salesforce launches Agentforce 2.0, a digital labour platform enabling enterprises to scale with AI agents, improving productivity and customer support.

Instagram introduces a feature to schedule direct messages

Instagram now lets you schedule text-only DMs up to 29 days in advance, offering more control over your conversations. It's easy to use and practical!

NETGEAR Orbi 770 Series review: Elevating home connectivity with tri-band WiFi 7

Explore the advanced features and performance of the NETGEAR Orbi 770 Series, designed for seamless, whole-home WiFi coverage and optimal device connectivity.

YouTube cracks down on misleading clickbait

YouTube is rolling out a new policy targeting misleading clickbait. To improve transparency, YouTube will remove videos with deceptive titles or thumbnails.

ZOWIE XL2566X+ review: A 400Hz esports monitor that redefines gaming performance

Experience unmatched gaming performance with the ZOWIE XL2566X+, featuring 400Hz refresh rate and DyAc 2 for esports excellence.

Google Keep might become an essential Android app

Google Keep might become a core Android app in Android 16, making it uninstallable without root access and potentially gaining new features.

8BitDo introduces a smaller Xbox controller for compact comfort

8BitDo’s Ultimate Mini Xbox controller is a smaller, lighter option for gamers with smaller hands. It features Hall effect joysticks and LED lighting.

Related Articles

Popular Categories