It is true that browsers choke on scripts, so generally it is best to put scripts in the footer to prevent the whole page being delayed. So putting jquery
in the footer also makes sense.
However, WordPress websites usually have plugins that may also include jquery
scripts, which they may load in the header without you knowing it. As long as jquery
itself is not loaded, because you’ve put it in the footer, those scripts won’t work. If those scripts control the looks of the page, you may have some very weird looking page while the browser is waiting for jquery
.
So, there you have it: put jquery
in the head of your WP site, because others may assume it’s there.
Related Posts:
- Prevent five different copies of jquery from being included on every page
- Is there a way to move WPML scripts in footer?
- Individual Pages are loading halfway down
- How to set time delay in javascript
- Disable button in jQuery
- Submit a form using jQuery
- Adding placeholder attribute using Jquery
- wait() or sleep() function in jquery?
- Force a default browser on my android phone using a simple html shortcut page
- Ajax Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- $ versus jQuery
- Enable & Disable a Div and its elements in Javascript
- Which selector do I need to select an option by its text?
- jQuery dynamic selector
- Check if inputs are empty using jQuery
- The ‘describe’ keyword in javascript
- e.preventdefault(); not working
- How to empty input field with jQuery
- Using WordPress 3.5 Media Uploader in meta box?
- CSS not pulling in for jQuery UI dialog
- WordPress Ajax URL for function in functions.php
- Move WordPress native javascript to bottom of page?
- Lightbox popup on WooCommerce add_to_cart action
- Loading style.css and Jquery using HTTPS
- AJAX function returning -1
- jQuery AJAX form validation
- Uncaught TypeError: Cannot read property ‘replace’ of undefined
- Is it worth updating WP admin to jQuery 1.5?
- Proper way to load a single post via Ajax?
- Trying to get single posts to load on the front page via ajax
- Ajax not firing properly using Firefox, but works in Chrome
- Get ACF value in external jQuery document
- Adding jQuery dependency prevents my script from enqueuing/loading
- How to pass jQuery ajax URL value
- Gravity Forms not loading under https, jQuery is not defined
- Automatic jQuery accordion from header tags
- Adding a character counter to the excerpt metabox
- How to deregister a jquery version for a specific page?
- Enqueuing javascript files
- enqueued script with jquery dependency not getting jquery
- How to undo deregister script and use local versions?
- Can’t load a class into WordPress post editor’s content field
- How can I check email exists via a jquery keyup()?
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- I want to import my Json file into a custom made display-modal. How do i link my Json file?
- Frontend Post with JQuery AJAX to Php Issue
- show/hide div with simple jQuery script [closed]
- Searching multiple tags and adding jQuery dependant script onto page template?
- TinyMCE 4 remove/add attributes for all images
- Validating a cloned/repeatable input (jQuery) [closed]
- Trouble adding inline style after jQuery in the footer!
- Reload wordpress shortcodes
- jQuery script isn’t posting to database
- $.browser Undefined Seemingly Causing Faulty Page Display
- I’m trying to set the cookie to my site to button on click action ,it is working on when user logged in .When user logged out it’s not working
- Ajax form submit not working, returns 0
- Do I need to use jQuery for my template?
- Invoking Jquery in a Plugin
- Why not working jquery show() function in wordpress? [closed]
- Loading scripts on a single page plants the script in the footer
- registering new jQuery after wp_deregister_script() not working
- Displaying an image’s alt title and caption inside a fancybox window. Working, but showing the same alt and caption for each image
- Problem Implementing parallax in header of bp-default theme
- jQuery Show DIV and Remove Button [closed]
- timeouts (ERR_CONNECTION_RESET) on seemingly random files after upgrading to HTTPS
- Required radio button does not validate in form, when clicked through Javascript/jQuery
- Need workaround for insecure XMLHttpRequest endpoint request
- jQuery don’t working
- Applying jquery to WordPress admin edit.php
- Load different post_thumbnail for smaller window width (jQuery,WordPress)
- Duplicate “default” form with jQuery
- Checking length of string in an admin area field onblur with jQuery
- My wordpress site is using local ip to point to jquery and other files, how to fix it?
- admin ajax php success returns 0
- Blur.js with WordPress – Enqueued, but server not finding file
- Problem adding MP3 attachments to a jPlayer playlist
- wp_enqueue_script jquery and jquery ui not working
- wp_enqueue_script calling jQuery at different times for different browsers?
- Axis guidelines over an image
- WordPress forbidden 403 on delete in production vs local environment
- jquery Autocomplete
- Homepage loads many unnecessary jquery-ui files
- Get ajaxForm response value
- Update a parent theme JQuery property in the child theme
- Adding scripts before plugins scripts
- Refresh widget admin page resetting jQuery hidden class
- Autocomplete for titles via ajax – rework of past post away from like_escape()
- Ajax Request with jQuery not happening
- Bootstrap with Flexslider jQuery Issue
- Console shows ReferenceError: jQuery is not defined, no clue why!
- Sorting UL Listing Within the TinyMCE Visual Editor in WordPress
- How to make jQuery load AFTER plugin’s script?
- My .js file is getting a 404
- Contact Form 7 submission does not complete [closed]
- how to display post in jquery slider and carousel
- Carousel Hover Image
- What is calling jquery?
- Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP
- jQuery datepicker not showing on admin menu
- Can’t seem to check off a category checkbox with jquery?