Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
big_pipe.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Mar 2021 at 13:26 UTC
Updated:
8 Oct 2021 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
seanmacgillivray commentedComment #3
nod_This will be taken care of as part of the related issue, see https://git.drupalcode.org/project/drupal/-/merge_requests/391/diffs#716...
Please review the issue and leave a comment, even if you only look at the bigpipe module!
Comment #4
nod_Maybe too soon,
There is a use of Drupal.ajax (which itself depends on jquery), so that would need to be taken care of at this level or do some custom code.
Comment #5
seanmacgillivray commentedThanks Théodore!
Comment #7
wim leersAnd that was very intentional: the goal is for BigPipe to have as close to zero JS as possible, and just re-use the AJAX system!
That being said, BigPipe uses jQuery only for a single thing:
I do think we can probably get rid of at least this usage? Then as soon as the AJAX system no longer relies on jQuery, neither will the BigPipe module!
Untested patch attached 🤓🤞
Comment #8
wim leersComment #9
droplet commented`Drupal.Ajax.prototype.success` is one can be no jQuery.
#3197003: To chop ajax.js into multiple small files
it should be no issues. If testbot is happy, I'm happy.
Comment #10
longwaveEslint is not happy, though I don't understand why from the CI log.
Comment #11
wim leersNeither do I 😅
Comment #12
nod_extra newline in the generated file.
NW because the dependency to jquery needs to be removed from the module libraries.yml file :)
Comment #13
wim leersGreat point! 🙈
Comment #14
nod_Nice :)
Comment #16
catchVery nice.
Committed 500af4b and pushed to 9.3.x. Thanks!
Comment #17
andypostNext great issue to finish #3196973: Use Mutation observer for BigPipe replacements )