• Hi! I usually use my own themes, that can be jquery-free, and I can check the plugins I use for jquery dependencies. But still it’s not clear to me if I really can safely quit jquery in frontend. Is there any reason I still should not? Is it a requirement for wordpress core itself?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Yes, jQuery is still used by WordPress core.

    Moderator bcworkz

    (@bcworkz)

    Agreed, WP core uses jQuery in the back end. But it’s not generally required on the front end unless your theme or plugins is doing something that requires it. For example, the Twenty Twenty-one theme (with no other plugins) does not use jQuery on the front end.

    If a theme or plugin requires jQuery, it would most likely be enqueuing it for itself. Otherwise it’s unlikely to be enqueued for front end requests. Even if a certain plugin requires it, it’s likely only needed on a few pages. Even so it gets enqueued on every page since plugins cannot easily tell where their jQuery is needed. But you as site owner could likely safely dequeue front end jQuery anywhere you know it’s not needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is jquery still needed by WordPress Core?’ is closed to new replies.