Skip to content

6 articles

#JavaScript

Every article tagged JavaScript, newest first. Search all articles

  • Hand pressing a glowing button while one oversized gear in the chain behind it holds up the response, a stopwatch abovePerformance

    8 min read

    Fix INP in WordPress by finding the slow interaction

    To fix INP in WordPress, start by reproducing the exact tap or key interaction that feels slow, then record it in Chrome DevTools and split its delay into input, processing, and presentation.

    • WordPress
    • Core Web Vitals
    • Performance
    Read article
  • A printed toggle switch lifts off a paper card and becomes a real glowing switch between a reader's fingers, small sparks around it.Development

    7 min read

    The WordPress Interactivity API: add front-end behavior to a custom block

    The WordPress Interactivity API gives custom blocks a standard way to connect front-end HTML to state and JavaScript actions. Since WordPress 6.5, you can declare an interactive block in block.json, add directives to server-rendered markup, and load behavior through a script module.

    • WordPress
    • Gutenberg Blocks
    • JavaScript
    Read article
  • A robot puppeteer works a tiny shop page on strings, picking a shoe, filling a form and pressing checkout while cameras record each move.Development

    7 min read

    End-to-end WordPress Playwright testing for editor, admin and checkout

    WordPress Playwright testing lets a browser verify the editor, wp-admin, and checkout paths that a release depends on. Run those flows against wp-env, reuse a saved admin session, keep test data fixed, and save traces and screenshots when CI fails.

    • WordPress
    • Testing
    • JavaScript
    Read article
  • Colour-coded glass jars on a shelf, each linked by glowing tubes only to the jars it needs, forming a tidy web of dependencies.Development

    7 min read

    WordPress Script Modules: load ES modules the WordPress way

    WordPress Script Modules are the core API for registering and loading front-end ES modules with named dependencies. Since WordPress 6.5, you can let WordPress build the import map, preload static module dependencies, and print the module entry point in the right order.

    • WordPress
    • JavaScript
    • Performance
    Read article