jQuery 4 FINALLY released... (What!?) ๐Ÿ”— **Source:** [jQuery 4 FINALLY released... (What!?)](https://www.youtube.com/watch?v=HNp8naNxS0w) > [!note]+ Document Notes > tags: [jquery, javascript, web-development] > author: Theo - t3โ€คgg > source: YouTube > reference: https://www.youtube.com/watch?v=HNp8naNxS0w > date created: 2024-12-22 10:30 > > # ๐Ÿท๏ธ Title: jQuery 4 FINALLY released... (What!?) > <!-- deep-read:sections start --> ## ๐Ÿงฐ Action Inbox - [H1] Consider jQuery 4 migration impact โ€” legacy browser support dropped #modernization - [H2] Evaluate slim build adoption โ€” 19.5KB alternative available #performance - [H3] Review deprecated function usage โ€” native JS replacements exist #refactoring ## ๐Ÿงญ Table of Contents - [๐Ÿ“ Summary](#-summary) - [๐Ÿ“– Main Content](#-main-content) - [๐Ÿ—’๏ธ Notes](#๏ธ-notes) - [๐Ÿ“š References](#-references) - [๐Ÿ—ฃ๏ธ Paraphrase](#๏ธ-paraphrase) - [๐Ÿ“ฐ Newsletter](#-newsletter) - [โœ… Action Items](#-action-items) - [๐Ÿงช Hypotheses](#-hypotheses) - [๐Ÿ“Š Methodology](#-methodology) - [โ“ Questions](#-questions) - [๐Ÿ”ฎ Future Research](#-future-research) - [๐Ÿ’ก Implications](#-implications) - [๐Ÿง  Learning Styles Assessment](#-learning-styles-assessment) - [๐Ÿ“Š Accessibility Assessment](#-accessibility-assessment) - [๐ŸŒ DEIB Assessment](#-deib-assessment) - [โœ… Logical Validity](#-logical-validity) - [๐Ÿ›ก๏ธ DARVO Analysis](#-darvo-analysis) - [๐ŸŽฏ Conclusion](#-conclusion) ### ๐Ÿ”— References - [jQuery 4.0.0 Release](https://jquery.com/) - [Modern Browser Support](https://caniuse.com/) ## ๐Ÿ“ Summary - jQuery 4.0 released after 8 years, marking first major update since 2016 - Drops support for Internet Explorer 10 and below, modernizes codebase - Still powers 88% of websites, largely due to WordPress usage - Breaking changes include removal of functions now native to JavaScript - Offers slim build at 19.5KB for modern development needs ## ๐Ÿ“– Main Content jQuery 4 represents a significant modernization effort for the 20-year-old library that still powers the majority of websites. The release drops legacy browser support, migrates to ES modules, and removes functions that are now native to JavaScript. While jQuery may seem outdated compared to modern frameworks like React, it remains crucial infrastructure for existing applications and demonstrates how JavaScript has evolved to incorporate many features that once required external libraries. ## ๐Ÿ—’๏ธ Notes #### โฑ๏ธ [00:00](https://youtu.be/HNp8naNxS0w?t=0) โ€” [H1] jQuery 4 Release Timeline - Key idea: First major version since 2016, after 2 years in beta - Evidence: "20 years after jQuery was first introduced" #### โฑ๏ธ [00:23](https://youtu.be/HNp8naNxS0w?t=23) โ€” [H2] Current Usage Statistics - Key idea: jQuery remains widely adopted across the web - Evidence: "88% of all websites still use it, thanks mostly probably to WordPress" #### โฑ๏ธ [00:45](https://youtu.be/HNp8naNxS0w?t=45) โ€” [H3] Breaking Changes Approach - Key idea: Major version used for accumulated breaking changes - Evidence: "trimming legacy code, removing deprecated APIs and never documented functions" #### โฑ๏ธ [01:05](https://youtu.be/HNp8naNxS0w?t=65) โ€” [H1] Browser Support Changes - Key idea: Legacy Internet Explorer support officially dropped - Evidence: "Support for Internet Explorer 10 and below... dropped" #### โฑ๏ธ [01:35](https://youtu.be/HNp8naNxS0w?t=95) โ€” [H2] Modern Browser Requirements - Key idea: Modernized browser support matrix implemented - Evidence: "iOS versions earlier than the last three, Firefox versions earlier than the last two" #### โฑ๏ธ [01:55](https://youtu.be/HNp8naNxS0w?t=115) โ€” [H1] ES Module Migration - Key idea: Source code modernized from AMD to ES modules - Evidence: "should now play nicely with Vite, Webpack, and modern build systems" #### โฑ๏ธ [02:25](https://youtu.be/HNp8naNxS0w?t=145) โ€” [H1] Removed JavaScript Functions - Key idea: Native JavaScript has replaced many jQuery utilities - Evidence: "isArray, parseJSON, trim, now isNumeric isFunction, and loads loads more" #### โฑ๏ธ [03:15](https://youtu.be/HNp8naNxS0w?t=195) โ€” [H2] Focus Event Handling Fixed - Key idea: Browser consistency allows native focus behavior - Evidence: "all supported browsers except Internet Explorer have the exact same order" #### โฑ๏ธ [03:50](https://youtu.be/HNp8naNxS0w?t=230) โ€” [H2] Modernization Opportunities - Key idea: Additional jQuery features have modern alternatives - Evidence: "deferreds and callbacks which can be replaced with promises" #### โฑ๏ธ [04:15](https://youtu.be/HNp8naNxS0w?t=255) โ€” [H3] Slim Build Option - Key idea: Reduced bundle size for modern development - Evidence: "slim build strip out a load of these extra modules, making it just 19.5 kilobytes" #### โฑ๏ธ [04:45](https://youtu.be/HNp8naNxS0w?t=285) โ€” [H3] Historical Bug Fixes - Key idea: Long-standing issues finally resolved - Evidence: "oldest I could find was from 2014... jQuery autopromoting JSON to JSONP" #### โฑ๏ธ [05:15](https://youtu.be/HNp8naNxS0w?t=315) โ€” [H3] CSS Unit Handling Fix - Key idea: Automatic pixel appending behavior corrected - Evidence: "jQuery CSS setter would automatically append pixels to any number that didn't specify a unit" #### โฑ๏ธ [05:45](https://youtu.be/HNp8naNxS0w?t=345) โ€” [H2] jQuery's Ongoing Relevance - Key idea: Legacy infrastructure remains important despite modern alternatives - Evidence: "boring, simple, and old tools are actually the ones holding the web together" ## ๐Ÿ“š References - [jQuery Official Website](https://jquery.com/) - [WordPress Usage Statistics](https://wordpress.org/) - [Browser Support Documentation](https://jquery.com/browser-support/) ## ๐Ÿ—ฃ๏ธ Paraphrase - jQuery 4 drops Internet Explorer 10 support and migrates to modern ES modules for better tooling compatibility - Many utility functions removed because JavaScript now provides native implementations for array checking, JSON parsing, and string trimming - A slim build reduces bundle size to 19.5KB by removing legacy features that have modern CSS or Promise-based alternatives ## ๐Ÿ“ฐ Newsletter **jQuery 4.0 Brings Modern Tooling to the Web's Most Popular Library** After 8 years, jQuery released its first major update, modernizing the 20-year-old library while maintaining compatibility for the 88% of websites that depend on it. The update drops Internet Explorer 10 support, migrates to ES modules for better Webpack/Vite integration, and removes functions now native to JavaScript. For WordPress developers, this represents a careful balance between modernization and stability. The new slim build at 19.5KB offers performance benefits, while the full version maintains backward compatibility for existing themes and plugins. **Key benefits:** Better build tool integration, smaller bundle options, and alignment with modern JavaScript standards. Resources: [Learn WordPress](https://learn.wordpress.org/), [Developer Docs](https://developer.wordpress.org/), [WP-CLI](https://wp-cli.org/) ## โœ… Action Items #### WordPress - Core: Evaluate jQuery 4 compatibility with WordPress core, update dependency management - Themes: Review theme compatibility, test with new slim build option - Plugins: Audit plugin dependencies, migrate from deprecated jQuery functions - Performance: Assess slim build adoption impact on Core Web Vitals #### Community - Contributors: Create migration guides for common jQuery patterns to native JavaScript - Maintainers: Update coding standards documentation for jQuery 4 compatibility ## ๐Ÿงช Hypotheses - WordPress sites using jQuery slim build will see improved Core Web Vitals scores - Legacy jQuery function removal will accelerate adoption of native JavaScript patterns - ES module support will improve developer experience in modern WordPress build processes - jQuery 4 adoption rate will correlate with Internet Explorer usage decline ### ๐Ÿ“Š Methodology - Performance testing: Compare full vs slim jQuery builds on representative WordPress sites - Compatibility analysis: Automated testing of popular themes/plugins against jQuery 4 - Developer survey: Measure adoption barriers and migration pain points ### โ“ Questions - How will WordPress core handle the jQuery 4 migration timeline? - What percentage of WordPress plugins rely on deprecated jQuery functions? - Can the slim build become the default for new WordPress installations? ### ๐Ÿ”ฎ Future Research - Long-term jQuery usage trends in the WordPress ecosystem - Performance impact analysis of jQuery alternatives in WordPress themes - Developer productivity metrics for native JavaScript vs jQuery patterns ### ๐Ÿ’ก Implications - Practice: Developers need to audit and update jQuery-dependent code - Policy: WordPress may need staged migration strategy for jQuery 4 adoption - Security: Dropping legacy browser support reduces attack surface - Education: Training materials needed for jQuery to native JavaScript migration - Funding: Investment required for compatibility testing and migration tooling ### ๐Ÿง  Learning Styles Assessment Reading level estimate: 8th grade (accessible technical content) #### ๐Ÿ‘€ Visual learners - Present: Usage statistics, browser support matrix implied - Improve: Timeline diagram showing jQuery evolution, browser support comparison chart #### ๐Ÿ”Š Aural learners - Present: Video format with clear narration - Improve: Downloadable audio summary, technical term pronunciation guide #### ๐Ÿ—ฃ๏ธ Verbal learners - Present: Clear definitions, historical context, analogies to language evolution - Improve: Glossary of technical terms, comparison stories #### ๐Ÿงฉ Kinesthetic learners - Present: Installation commands, practical migration examples - Improve: Step-by-step migration checklist, hands-on compatibility testing guide #### ๐Ÿง  Logical learners - Present: Chronological progression, cause-effect relationships - Improve: Decision tree for jQuery vs native JavaScript choices #### ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Social learners - Present: Community discussion prompts, shared experiences - Improve: Migration experience sharing forum, peer review guidelines #### ๐Ÿง˜โ€โ™€๏ธ Solitary learners - Present: Self-directed exploration suggestions, individual reflection - Improve: Personal migration assessment worksheet, self-paced learning path #### ๐ŸŒฟ Naturalistic learners - Present: Web ecosystem evolution analogies - Improve: Technology lifecycle comparisons, sustainability impact discussion ### ๐Ÿ“Š Accessibility Assessment #### Screen reader semantics - Present: Clear heading structure, descriptive content - Improve: Alt text for any visual elements, ARIA labels for technical concepts #### Keyboard navigation - Present: Standard video player controls - Improve: Timestamp navigation shortcuts, transcript interaction #### Contrast and readability - Present: Standard YouTube player interface - Improve: High contrast mode support, custom subtitle styling #### Text resizing and reflow - Present: Responsive video player - Improve: Scalable transcript text, mobile-optimized technical details #### Media and captions - Present: Auto-generated captions available - Improve: Professional transcript with technical term accuracy #### Forms and interactions - Present: Standard comment interface - Improve: Accessible code example interactions, keyboard-friendly demos ### ๐ŸŒ DEIB Assessment #### Cultural breadth - Present: English-focused content, Western web development perspective - Improve: Multi-language jQuery adoption data, global usage examples #### Inclusive language - Present: Gender-neutral technical language, accessible explanations - Improve: Define technical jargon consistently, avoid cultural idioms #### Neurodiversity support - Present: Clear section breaks, consistent structure - Improve: Content outline upfront, predictable information hierarchy #### Representation - Present: Focus on technical content over personal representation - Improve: Diverse developer use case examples, varied project contexts #### Psychological safety - Present: Non-judgmental tone about legacy technology use - Improve: Validation of different technical choices, migration anxiety acknowledgment ### โœ… Logical Validity #### Strong reasoning - Deductive strength: Browser evolution โ†’ jQuery adaptation (timestamp 3:15) - Inductive strength: 88% usage statistics โ†’ continued relevance (timestamp 0:23) - Causal reasoning: ES module adoption โ†’ better tooling integration (timestamp 1:55) - Analogical strength: Language evolution comparison to library evolution (timestamp 2:45) #### Fallacies - Appeal to popularity: High usage statistics don't necessarily validate technical merit - False dilemma: Presents jQuery vs modern frameworks as binary choice rather than contextual decision #### Tone of voice - Overall tone: Informative and respectful, balancing nostalgia with pragmatism about modern development ### ๐Ÿ›ก๏ธ DARVO Analysis - Deny: No denial patterns present - Attack: No attacks on accusers present - Reverse victim/offender: No victim/offender dynamics present - Emotional cues and rhetoric: Positive framing of legacy technology, respectful treatment of different technical choices ## ๐ŸŽฏ Conclusion jQuery 4 represents a thoughtful modernization of critical web infrastructure, balancing backward compatibility with forward progress. For WordPress developers, this update offers opportunities to improve performance while maintaining the stability that has made jQuery endure for two decades. The key is strategic migration planning that respects both legacy applications and modern development practices. ## ๐Ÿงฑ Refactor Appendix ### ๐Ÿ“š Literature Split Pad ### [H1] jQuery maintains massive web presence despite age > [!quote] [jQuery 4 FINALLY released... (What!?)](https://www.youtube.com/watch?v=HNp8naNxS0w) by [[Theo - t3โ€คgg]] via [[YouTube]]. Published 2024. Accessed 2024-12-22. > "88% of all websites still use it, thanks mostly probably to WordPress." Demonstrates jQuery's continued relevance in modern web development ecosystem, particularly through WordPress integration. [view highlight](https://www.youtube.com/watch?v=HNp8naNxS0w#H1) #webdev #statistics ID:rw_jquery_usage_2024 ### [H2] Native JavaScript evolution reduces library dependencies > [!quote] [jQuery 4 FINALLY released... (What!?)](https://www.youtube.com/watch?v=HNp8naNxS0w) > "You can now do pretty much all of these in JavaScript itself without the need for an additional library." Shows how language evolution can make previously essential libraries optional for new development. [view highlight](https://www.youtube.com/watch?v=HNp8naNxS0w#H2) #javascript #evolution ID:rw_js_native_functions --- ### ๐Ÿ”– Atomic Split Pad (Zettel Candidates) #### [Z1] Legacy browser support drives library evolution - Major version releases provide opportunity to drop outdated compatibility requirements - Pointer to timestamp 1:05 - Links: [[Browser-Support-Strategy]] [[Breaking-Changes-Management]] #### [Z2] Bundle size optimization through modular architecture - Slim builds allow modern performance while maintaining full compatibility options - Pointer to timestamp 4:15 - Links: [[Performance-Optimization]] [[Library-Architecture]] --- ### โœ๏ธ Fleeting Queue - [F1] Research WordPress jQuery 4 migration timeline โ€” core team communications #fleeting #wordpress - [F2] Compare jQuery slim build performance metrics โ€” real-world testing needed #fleeting #performance - [F3] Document deprecated jQuery functions โ€” migration guide creation #fleeting #documentation --- ## Full Transcript [00:00] jQuery 4 is finally here. And no, don't<br>[00:02] worry, you haven't traveled back in<br>[00:03] time. This is just our first major<br>[00:05] version update since 2016. It's been in<br>[00:07] beta for 2 years, and it comes 20 years<br>[00:10] after jQuery was first introduced. And<br>[00:12] it might surprise you to learn that<br>[00:14] jQuery is still pretty important. 88% of<br>[00:16] all websites still use it, thanks mostly<br>[00:19] probably to WordPress. But you can also<br>[00:20] see there's still some pretty big names<br>[00:22] that are running it, too. I mean, if it<br>[00:24] ain't broke, don't fix it. Except this<br>[00:26] update might actually break some things<br>[00:27] as they've used this one to make all of<br>[00:29] the breaking changes they've wanted to<br>[00:30] make for years, including trimming<br>[00:32] legacy code, removing deprecated APIs<br>[00:34] and never documented functions, and just<br>[00:36] a whole host of bug fixes. So, let's<br>[00:39] just dive right in, take a look at the<br>[00:40] key changes, and just how far J Career<br>[00:43] has come in 20 years.<br>[00:49] For the first big change, Paul went out<br>[00:51] for Internet Explorer 10 and below.<br>[00:53] Support for this has now been dropped,<br>[00:55] but don't panic if you're watching this<br>[00:57] on Internet Explorer 11. Support for<br>[00:59] that won't be dropped until jQuery 5.<br>[01:01] So, you still have some time to hit that<br>[01:02] subscribe button. Alongside this, they<br>[01:04] also drop support for Edge Legacy, iOS<br>[01:06] versions earlier than the last three,<br>[01:08] Firefox versions earlier than the last<br>[01:10] two and also Android browser. So, you<br>[01:12] can see we are really modernizing now.<br>[01:14] In fact, the next three changes are all<br>[01:16] about that. So, moving on to change<br>[01:18] number two now. Migrating the jQuery<br>[01:20] source code from AMD to ES modules. So,<br>[01:22] it should now play nicely with V,<br>[01:24] Webpack, and modern build systems with<br>[01:26] no tricks required. So, why not give it<br>[01:28] a go and install it in your next project<br>[01:30] just for a little bit of fun or maybe<br>[01:32] for some nostalgia. And talking of<br>[01:33] nostalgia, this update will actually<br>[01:35] show you just how far JavaScript has<br>[01:37] come because for change number three,<br>[01:38] they've removed a bunch of jQuery<br>[01:40] functions because JavaScript has just<br>[01:42] caught up. They include things like is<br>[01:44] array, pass, JSON, trim, now is numeric<br>[01:47] is function, and loads loads more. You<br>[01:49] can now do pretty much all of these in<br>[01:51] JavaScript. itself without the need for<br>[01:53] an additional library. I mean, it's kind<br>[01:55] of crazy that we need an additional<br>[01:56] library to do some of these in the first<br>[01:58] place, but that's the way that languages<br>[02:00] have to evolve. And talking of evolving,<br>[02:03] browsers also evolve as well. So, for<br>[02:05] change number four, the last big one of<br>[02:07] the modernization updates, they finally<br>[02:09] fixed focus order. If you didn't know,<br>[02:11] for years, browsers didn't actually<br>[02:12] agree on an order of focus and blur<br>[02:14] events. So, jQuery had its own<br>[02:16] definition so it would be consistent<br>[02:18] across all of them. But now since<br>[02:20] they're deprecating the old browsers,<br>[02:21] all supported browsers except Internet<br>[02:24] Explorer have the exact same order. So<br>[02:26] jQuery is no longer going to override<br>[02:28] the native behavior. You can really see<br>[02:30] the team focused on making jQuery modern<br>[02:32] here as much of what made jQuery useful<br>[02:34] in the past has just been added to<br>[02:36] JavaScript eventually. Anyways, there is<br>[02:38] still a few things in jQuery that can be<br>[02:40] modernized, like that deferreds and<br>[02:42] callbacks which can be replaced with<br>[02:43] promises unless you're on Internet<br>[02:45] Explorer 11. or there's some animations<br>[02:47] that people do with jQuery that are now<br>[02:48] pretty easy to do in CSS. So, if you do<br>[02:51] want to take it one step further,<br>[02:53] they've actually made that slim build<br>[02:54] strip out a load of these extra modules,<br>[02:56] making it just 19.5 kilobytes. And I<br>[02:59] actually think this is quite a good<br>[03:00] approach to still offer those functions<br>[03:02] in the full package for those that might<br>[03:03] need them, but then offer a slim build<br>[03:05] that doesn't have any of the extras that<br>[03:07] are unneeded these days. So, that's it<br>[03:09] for the key headline changes, but<br>[03:10] obviously there's been a ton of bug<br>[03:12] fixes and minor tweaks, some of them<br>[03:14] dating back years. The oldest I could<br>[03:16] find was from 2014 and it related to<br>[03:18] jQuery autopromoting JSON to JSON P<br>[03:21] which has now been fixed. And there's<br>[03:22] even an issue from 2015 which I actually<br>[03:25] remember running into where jQuery CSS<br>[03:27] setter would automatically append pixels<br>[03:29] to any number that didn't specify a<br>[03:32] unit. This too has now been fixed.<br>[03:34] There's loads more that you can go and<br>[03:36] explore yourself in there. There's even<br>[03:37] some casual fixes like fixing typos, but<br>[03:39] obviously these would take a while to<br>[03:41] cover in this video. And personally, I<br>[03:43] just wanted to take a look at jQuery,<br>[03:45] see how far it's come, as it's such an<br>[03:47] awesome piece of web development<br>[03:48] history. And perhaps it's even rude to<br>[03:50] say history when it's still so actively<br>[03:52] used and maintained. Now, obviously, I<br>[03:55] wouldn't go and use jQuery today instead<br>[03:57] of React or whatever modern framework,<br>[03:59] but it just serves as a reminder that<br>[04:01] the web is built on layers of<br>[04:02] technology, and sometimes the boring,<br>[04:05] simple, and old tools are actually the<br>[04:06] ones holding the web together,<br>[04:08] especially those important legacy apps<br>[04:10] that no one dares to update. So, I'm<br>[04:12] curious to those of you still here, did<br>[04:13] you use jQuery or do you still use it?<br>[04:16] Let me know in the comments below. While<br>[04:17] you're there, subscribe. And as always,<br>[04:19] see you in the next one. <!-- deep-read:sections end -->