Active
Project:
Drupal core
Version:
main
Component:
javascript
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 May 2012 at 13:22 UTC
Updated:
18 Nov 2016 at 13:38 UTC
Jump to comment: Most recent
We agreed on a few things in the jQuery issue #1541860: Reduce dependency on jQuery This is the meta tracking the progress. What this aims at is a full review of our JS code.
What we agree on, in order of most important for perfs:
.once().The plan is to open an issue for each core file/module and tackle points 2-4 one file at a time.
I've highlighted the ones that would benefit the most. The changes to tabledrag are a bit more drastic than the rest so we might to keep it for the end since it's such a big piece of code.
Feel free to edit and add links to issues. Don't forget to add the "JavaScript Clean-up" tag to every issue you might open for this.
Comments
Comment #0.0
nod_separate some files
Comment #0.1
nod_authorize.js
Comment #1
nod_Since changing some HTML to make things cleaner, adding a few tags.
Comment #1.0
nod_batch.js
Comment #2
neclimduloh man... can we break at least the for loop thing into one patch. That's I and asked for this to be broken down but people(like me) aren't interested in files, we interested in conceptual changes and this makes it really hard to track. Can we open an issue for #2 and #4 in the summary to take a first pass then use the longer list to nail down smaller optimizations or things that where sticking points in the larger issue?
Comment #2.0
neclimduladjust scope
Comment #2.1
nod_block
Comment #2.2
nod_book, statistics
Comment #2.3
nod_book
Comment #3
nod_Comment #3.0
nod_timezone
Comment #3.1
nod_table black-magic
Comment #3.2
nod_tableheader
Comment #4
jacineHey, I hope you don't mind, but in an effort to get a better picture of issues remaining in the HTML5 Initiative, we are removing the "html5" tag from issues that are not directly HTML5-related. Note: Any issues assigned to the "Markup, CSS and JavaScript" components will still be broadcast on the HTML5 Twitter feed so that interested parties are aware and can participate. Thanks! :)
Comment #5
klonos...coming from #1332066: [Meta] Update / Refactor JavaScript as a result of upgrading to jQuery 1.7.
Comment #6
sxnc commentedTried to have a go at this and started with ajax.js: #1751320: Selectors clean-up: ajax.js
Comment #7
nod_The details patch #1168246: Freedom For Fieldsets! Long Live The DETAILS. clean-up a lot of bad selectors, demoting.
Comment #7.0
nod_simplify summary
Comment #8
lewisnymanComment #9
manuel garcia commentedAdding #2153177: Convert type selectors to be compatible with jQuery native-API selector as related so people are aware of it.
Comment #10
manuel garcia commentedAdded this issue as parent to all it's children issues I could find.
Comment #11
manuel garcia commentedComment #12
xjmComing here from #1751436: Selectors clean-up: bartik/color theme. So code cleanup for its own sake generally is no longer in scope during the beta; however, it sounds like this has the potential to improve frontend performance. Can we add a beta evaluation that explains the performance improvement a bit more? Thanks!
Comment #13
xjmComment #14
nod_Comment #15
andriyun commentedComment #18
andypost