Solution:
If you want to save some time, you can go to the Javascript console and type jQuery.fn.jquery which works on any site using jQuery, not only Drupal sites.
At the moment Drupal 8 core uses jQuery 2.1.4, but it looks like jQuery 3 has been implemented in Drupal 8.4.x.
https://www.drupal.org/node/2533498
This is probably not the best question because the answer could change over time based on the specific version of Drupal.
The most accurate way to find what version of a JavaScript library is used by Drupal core is to look directly at the core/core.libraries.yml file for a given version of Drupal. One of the easiest ways to do this is to browse Drupal's git repository online:
For Drupal 6-7, without jquery_update module installed, the version of Drupal can be most easily discovered by going into the misc/ directory, and looking at the top of the jquery.js file. This is v1.2.6 and v1.4.4 respectively.
For Drupal 5, the version of jquery is not readily apparent, but the handy git blame misc/jquery.js reveals the commit 0d57bae updated jQuery to v1.0.4.
Subscribe to:
Post Comments (Atom)
latest ECMAScript proposals and releases (as of ECMAScript 2024), several enhancements have been made to built-in objects like Set
JavaScript continues to evolve, and in the latest ECMAScript proposals and releases (as of ECMAScript 2024), several enhancements have been ...
Best for you
-
JavaScript continues to evolve, and in the latest ECMAScript proposals and releases (as of ECMAScript 2024), several enhancements have been ...
-
1. Definitions Synchronous : Tasks execute sequentially , one after another. Each task waits for the previous one to complete before star...
-
1. Use Refresh Tokens with Access Tokens Access tokens should be short-lived (e.g., 15 minutes). Refresh tokens should be long-liv...
-
Common Interview Questions on Security: Let’s break down Core Java , Spring Boot , Java/J2EE , and Spring with their relationships, k...
-
In Angular 17, the Signal API introduces a reactive way to manage state using signals, which can be very useful for performance and simpli...
-
You can use the Math.max function along with the spread operator. Here's a simple example: javascript code : const numbers = [3, 5, 7, 2...
-
In Angular, input signals are a new way to handle state changes and data binding in a more reactive and efficient manner, compared to the tr...
-
1. Basic .NET Concepts What is the .NET Framework ? A software framework by Microsoft that provides a runtime (CLR) and libraries for b...
-
In Angular 17, the Signal API provides a powerful way to manage state and reactivity. When using signals, you can define input options t...
No comments:
Post a Comment