Halloween Sale 15% off Ends in See the plans

Snippet Library

Performance snippets for WordPress

Snippets that make WordPress lighter and faster: remove emoji scripts and embeds, control the Heartbeat API, limit revisions and load scripts only where they are needed. For developers and site owners chasing better Core Web Vitals.

1–6 of 6 snippets “preload”

  • PHP Performance

    Preload Key Scripts and Stylesheets by Handle

    Adds preload hints for the enqueued scripts and stylesheets you name, so the browser fetches files that are discovered late (such as a slider script or icon font CSS) right at the start of the page load.

  • PHP Performance

    Preload Key Web Fonts

    Preloads the font files used above the fold, so text appears in the right font sooner and the layout shifts less.

  • PHP Performance

    Preload a Chosen Hero Image per Page

    Adds a "Preload hero image" field to the post and page editor; when filled in with an image URL, that image is preloaded with high priority on that page, improving Largest Contentful Paint for pages whose main image is not the featured image.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.