Sunday, 15 June 2025
34 C
Singapore
32.7 C
Thailand
24.5 C
Indonesia
29.8 C
Philippines

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 plugins were loaded without particular instructions for asynchronous loading. As a result, these scripts would stall other content 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

Meta in talks to invest over US$10 billion in Scale AI

Meta may invest over US$10B in Scale AI, marking one of the biggest private AI funding deals and Meta’s largest external AI investment ever.

Nothing to launch new over-ear headphones and flagship smartphone on 2 July

Nothing will unveil its first over-ear headphones and flagship smartphone, Phone (3), in a global launch event on 2 July.

Belkin BoostCharge Pro Magnetic Power Bank with Qi2 15W review: Fast wireless charging with practical features

Belkin’s BoostCharge Pro Magnetic Power Bank with Qi2 delivers fast Qi2 wireless charging with a built-in kickstand and Apple StandBy support.

Semperis and Akamai address critical Active Directory flaw in Windows Server 2025

Semperis and Akamai introduce new detection tools to counter a critical Windows Server 2025 vulnerability affecting Active Directory security.

Apple gives Image Playground a second chance with ChatGPT integration

Apple is upgrading Image Playground with ChatGPT to offer more creative image styles and better results. It will launch with iOS 26 this autumn.

Hong Kong opens skies to larger drones in bid to grow low-altitude economy

Hong Kong will allow the testing of larger drones to boost its low-altitude economy and improve logistics, following mainland China's lead.

Hong Kong to build new AI supercomputing centre in bid to lead global tech race

Hong Kong plans a new AI supercomputing centre to boost its tech hub status and support growing start-ups across the Greater Bay Area.

Steam adds full native support for Apple Silicon Macs

Steam runs natively on Apple Silicon Macs, ditching Rosetta 2 for smoother performance and better gaming on M1 and M2 devices.

Amazon taps nuclear power to boost AWS cloud energy supply

Amazon signs a 1.92 GW nuclear energy deal with Talen to power AWS cloud and explore new small modular reactors in Pennsylvania.

Related Articles

Popular Categories