jQuery – Add jQuery to head if not already loaded

Jquery Add Jquery To Head If Not Already Loaded Image

Ain’t got no jQuery in your WordPress, just add it!

What it does…

Loads jQuery into your page, if it’s not already loaded.

How it does it…

Adds a javascript to your WordPress frontend that checks if `window.jQuery` is defined, if not it attempts to add jQuery from the source of your choosing.

Use the JSON file for easily importing into your CodeSnippetsPro plugin.

Related Snips

One response

  1. Cool 😎

Leave a Reply

Your email address will not be published. Required fields are marked *