HTMLHelper::_('bootstrap.framework');
Labels |
Added:
?
|
Labels |
Added:
J4 Issue
|
Status | New | ⇒ | Discussion |
Finding is not the ""problem"" but to decide if Bootstrap is loaded also for functionalities of the HTML output of the modules.
I don't have the time at the moment to investigate that.
So it would need to compare the HTML output produced by the modules listed in my first listing with the content of the same modules when the HTMLHelper::_('bootstrap.framework');
has been removed, and if output is the same, then the line is obsolete, right? Or does it need more to be investigated?
and if output is the same, then the line is obsolete, right?
Yes, if everything functions as before.
Even if I've learned Joomla 4 core doesn't need JQuery/Bootstrap-JS and everything in core will be replaced somehow by Vanilla scripts it looks like that this isn't the fact yet. Thus I'm in doubt if we can remove these lines.
I will see if I can find time. But if you find time before me or others, let us known here so we don't do double work.
Yes, not easy to test. Time-consuming.
I use a plugin that removes bootstrap-*.js in backend. Then compare the output plus functionalities of the backend modules with and without active plugin. I also deactivate other backend modules as far as possible.
First result: mod_popular doesn't need bootstrap.
BUT then I've found that /templates/atum/layouts/chromes/body.php
DOESN'T load bootstrap-*.js but uses it for the edit cog dropdowns of modules. Thus it should load BS if we follow the common practice.
Now I think it's better to place a pr first for that find in body.php
and ask for comments there if it's correct to add HTMLHelper::_('bootstrap.framework');
where it's missing AND (more important) if it's worth the time to investigate further for other files; instead of waiting.
See my related comment: "Even if I've learned Joomla 4 core doesn't need JQuery/Bootstrap-JS and everything in core will be replaced somehow by Vanilla scripts it looks like that this isn't the fact yet."
Maybe @franz-wohlkoenig knows whom to ping?
I try @dgrammatiko , @wilsonge , @Bakual #24922 (comment)
From my point of view modules should load their dependencies also with other templates but only if needed.
The main question is: Will be backend core extensions BS and Jquery free or not?
There is NO point looking at this until the new template is completed
Yes for chrome body.php
. That's an atum layout. But not mod_popular.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-05-25 19:33:17 |
Closed_By | ⇒ | ReLater |
The backend extensions will be jQuery (direct usages) free. However they won't be Bootstrap free from a CSS perspective. The aim is to make the backend not automatically load the javascript on all pages unless required.
Don't know if that helps.