Tuesday, 29 April 2025
29.2 C
Singapore
30.3 C
Thailand
26.5 C
Indonesia
28.9 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’s Oversight Board asks for clarity on new hate speech rules

Meta’s Oversight Board is urging more transparency on hate speech policy changes and urging the company to protect vulnerable users.

xAI’s Grok chatbot now lets you ask questions about what you see

Grok’s new Vision tool lets iPhone users ask questions about what they see. Updates also add real-time voice search and memory features.

DeepMind team in London seeks to unionise over AI concerns

DeepMind employees in London seek to unionise with the Communication Workers Union over concerns about Google’s AI policies and military contracts.

Why OpenAI chose Windsurf after Cursor said no to being bought

OpenAI considered buying Cursor but moved on to Windsurf with a US$3B offer after Cursor’s parent company, Anysphere, chose to stay independent.

Ziff Davis takes OpenAI to court over alleged copyright infringement

Ziff Davis sues OpenAI over copyright claims, accusing the AI firm of copying and using its content without permission.

India could manufacture all US-bound iPhones by the end of 2026

Apple plans to manufacture all iPhones for the US market in India by the end of 2026 to avoid China tariffs and secure its supply chain.

Razer Launches Pro Click V2 and V2 Vertical Mice: Blending Gaming and Productivity

Razer's new Pro Click V2 and V2 Vertical mice offer gaming precision and ergonomic comfort, with AI prompt access and long battery life, available now!

Nintendo Pop-Up Store and Mario Kart Fun Return to Jewel Changi Airport

Experience the magic of Nintendo at Jewel Changi Airport with the return of the Pop-Up Store and the exciting Mario Kart Jewel Circuit Challenge!

Lian Li’s new Lancool 207 Digital case brings a 6-inch LCD screen to your PC

Lian Li's Lancool 207 Digital PC case brings a bright 6-inch LCD screen to your setup, offering style, function, and full customisation.

Related Articles

Popular Categories