My only question is will this (loading 2 JS files of different versions) create any problem in any other pages?
Likely. WP loads jQuery in noConflict
mode, meaning it doesn’t occupy typical $
variable, but only jQuery
one. However another copy of jQuery can very well get in a fight over jQuery
one with the core’s version.
Inherently this is possible, but requires very explicit implementation of noConflict
so that two versions are kept separate and only called from code intended to use that specific version.
In a typical theme case it would probably be easier to fix up code to use current jQuery version properly, than bother implementing multi–version environment.
Related Posts:
- Javascript split regex question
- Find object by id in an array of JavaScript objects
- Cannot set property InnerHTML of null [duplicate]
- How can I submit a form using JavaScript?
- How do I empty an array in JavaScript?
- JavaScript TypeError: Cannot read property ‘style’ of null
- JavaScript string newline character?
- How to create a GUID / UUID
- How does “/\s/g” replace spaces with other characters?
- What is the correct way to check for string equality in JavaScript?
- JavaScript TypeError: Cannot read property ‘style’ of null
- Number converted in 1e+30
- Static variables in JavaScript
- ReferenceError : window is not defined at object.
Node.js - Node.js Port 3000 already in use but it actually isn’t?
- Uncaught TypeError: $.post is not a function
- Unable to verify leaf signature
- XML Parsing Error: no root element found Location in Console FF
- TypeError: app.use() requires middleware functions
- Possible to extend types in Typescript?
- JavaScript enumerator?
- How to format numbers as currency strings
- Understanding how data-dismiss attribute works in Bootstrap
- Add table row in jQuery
- Obtain form input fields using jQuery?
- Npm install cannot find module ‘semver’
- How to download a file with Node.js (without using third-party libraries)?
- Getting current date and time in JavaScript
- What is ViewChild in Angular2?
- Permutations in JavaScript?
- How do I remove documents using Node.js Mongoose?
- jQuery make global variable
- Mixed Content Page: requested an insecure stylesheet error
- How to do integer division in javascript (Getting division answer in int not float)?
- javascript unexpected identifier
- How to send email by using javascript or jquery
- Access to Image from origin ‘null’ has been blocked by CORS policy
- Onclick on bootstrap button
- Read XML file using javascript
- Load Image from javascript
- Most efficient method to groupby on an array of objects
- Don’t make functions within a loop [duplicate]
- Difference between ?:, ?! and ?=
- JavaScript post request like a form submit
- How to change the text of a label?
- How to check ‘undefined’ value in jQuery
- Detecting arrow key presses in JavaScript
- Data column(s) for axis #0 cannot be of type string in google chart dashboard [duplicate]
- JavaScript – Count Number of Visitor for Website
- Jquery Value match Regex
- replace space with dash JavaScript
- Using “×” word in html changes to ×
- How do I store an array in localStorage?
- How to check if the URL contains a given string?
- How to enable CORS in AngularJs
- bootstrap buttons onclick events
- How to make HTML element resizable using pure Javascript?
- how to use addHTML function in jsPDF
- Rock, Paper, Scissors, Lizard, Spock in JavaScript
- How to fix “TypeError: Right-hand side of ‘instanceof’ is not callable” when I use another module class?
- Change the selected value of a drop-down list with jQuery
- Uncaught SyntaxError: Unexpected token var
- window.location.href doesn’t redirect
- DeprecationWarning: Calling an asynchronous function without callback is deprecated. – how to find where the “function:” is?
- What are the benefits of using wp_enqueue_script?
- Get loading state of wp data selector
- Filter medias from the Media Uploader (wp.media) modal with a post meta
- Adding a text element in between title and blocks container
- Remove type attribute from script added by wp_localize_script
- Block Editor: How to get title and post content within the WordPress admin UI in Javascript?
- Google Map iframe in a tab issue
- Using wp_localize_script inside template page to transfer var from php to js
- How to return div with custom attributes(Coding a Gutenberg Block)
- Problem with JavaScripts addition in WordPress
- Setting a menu link to open a pop-up
- Media library not working with wp_editor() on the front end
- Popup box when Clicking on Insert into post button in wordpress
- JQuery not loading
- How to display post content in the block editor
- My Button Default Click Is Not Working In WordPress Using Javascript Code
- Uncaught TypeError: jQuery(…).slider is not a function
- WordPress update_user_meta onclick button with Ajax
- Gutenberg RangeControl
- WordPress wp_enqueue_script only adds text to top of page source
- Javascript to open new window
- I want to make a post api call once a post or page is published/updated and show a javascript alert box saying ‘Post has been published/updated’
- Add a Page Screen is Visually Blank
- Debugging JS errors
- Javascript File Does Not Work
- Gutenberg sidebar show input field on toggle
- Get the ID of a page in Parent combobox in editor
- “jQuery Not Defined” Error When Connecting to PayPal
- Fade-in Fade-out doesn’t work in WordPress
- Is it feasible to call angular’s page from wordpress website?
- Connecting a wordpress site to an AngularJS APP
- WOW.js Script Tag Initialization Header/Footer
- dropdown does not work [closed]
- Anyway to disable the auto excerpt creation?
- How do I cycle a JS function in WordPress? [closed]
- Why is this script not working?