- Issue created by @tesla863
When the CSS is injected by simple_menu_icons_css_alter, it generates a conflict with AJAX execution and the Big Pipe module, resulting in the following console message:
"An error occurred during the execution of the Ajax response: LoadJS"
I have debugged and found that the stylesheet is being injected all the time, even when BigPipe processes AJAX callbacks to load CSS for other modules. This causes a conflict with the LoadJS library
In my opinion, the CSS should not be injected all the time. I have created a patch that uses $assets->getAlreadyLoadedLibraries() to check if libraries are already loaded, to avoid injecting the CSS again.
Test and review.
Needs review
3.0
Code