Problem/Motivation
This is a blocker for #2368797: Optimize ajaxPageState to keep Drupal 8 sites fast on high-latency networks, prevent CSS/JS aggregation from taking down sites and use HTTP GET for AJAX requests.
In the D8 cycle, we've worked hard to convert all asset handling into attached asset libraries. This is >97% complete. Getting to 100% would make core a consistent example, and would result in a single, clear DX, rather than a fragmented one.
Getting to 100% will also allow for #2368797: Optimize ajaxPageState to keep Drupal 8 sites fast on high-latency networks, prevent CSS/JS aggregation from taking down sites and use HTTP GET for AJAX requests to happen.
Proposed resolution
Convert the remaining ones.
Remaining tasks
Review.
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#9 | attach_only_libraries-2378095-9.patch | 27.9 KB | Wim Leers |
Comments
Comment #1
Wim LeersComment #2
Wim LeersComment #3
Wim LeersComment #5
Wim LeersActually, there were only 6 failures. Testbot is currently failing due to #2376039: Undefined property ContainerAwareEventDispatcherTest::results in run-tests.sh.
Most failures due to two things:
*.libraries.yml
files in the previous patch. Fixed.Comment #6
Devin Carlson CreditAttribution: Devin Carlson commentedA reroll of #5 now that #2378789: Views output cache is broken has been committed which handled the conversion of views_test_data.libraries.yml.
The patch worked well in my testing; I verified that none of the assets were missing during installation, batch processing, on view pages, when modifying theme colour or creating/editing content. I also didn't find any attached CSS/JS that needed to be converted but was missed.
Comment #7
Wim Leers#6 looks good to me, indeed only removes the now irrelevant hunks, everything else is unchanged.
Thank you very much for the manual testing, Devin!
If somebody could then still review the code, this can be RTBC :)
Comment #8
nod_We can now remove
color_css_alter
.The last patch mixes
[]
in places wherearray()
is used. Can we have that consistent please?Comment #9
Wim Leers#8:
Nice! :D
Comment #10
catchThis is blocking #2368797: Optimize ajaxPageState to keep Drupal 8 sites fast on high-latency networks, prevent CSS/JS aggregation from taking down sites and use HTTP GET for AJAX requests so bumping status.
Comment #11
nod_Patch looks good. Tested views and all, still working.
I did find a views bug related to js events and lack of detach function but it's unrelated to this.
Comment #12
catchCommitted/pushed to 8.0.x, thanks!
Comment #14
hass CreditAttribution: hass commentedIs this issue the root cause of #2391025: Add support for inline JS/CSS with #attached?