? ?
avatar C-Lodder
C-Lodder
16 Aug 2019

As stated in the PR for the new template, it's importing a lot of unused CSS, such as:

@import "../../../../../media/vendor/bootstrap/scss/carousel";
@import "../../../../../media/vendor/bootstrap/scss/navbar";
@import "../../../../../media/vendor/bootstrap/scss/media";

The killer though is the Bootstrap utilities.

@import "../../../../../media/vendor/bootstrap/scss/utilities";

I would strong suggest creating a new utilities.scss and only define the ones used by the template.

avatar C-Lodder C-Lodder - open - 16 Aug 2019
avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Aug 2019
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 16 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Aug 2019
Status New Discussion
avatar C-Lodder C-Lodder - change - 16 Aug 2019
The description was changed
avatar C-Lodder C-Lodder - edited - 16 Aug 2019
avatar mbabker
mbabker - comment - 16 Aug 2019

Disagree. The backend template should make most of Bootstrap available to developers out-of-the-box to make integrations easier, the template shouldn't arbitrarily strip out parts of Bootstrap that the template designers did not decide to use in the core layouts (contrary to what some will say, the backend is more than 3 screens).

avatar C-Lodder
C-Lodder - comment - 16 Aug 2019

The backend template should make most of Bootstrap available

That's still possible by a sort of tree shaking approach

avatar HLeithner
HLeithner - comment - 16 Aug 2019

Loading everything in each request isn't very nice but as long as there is no way to only load whats needed by a page or extension it better to have everything ready for the extension dev.

If you can came up with a good solution that can easily handled by 3rd party it would be great.

avatar brianteeman brianteeman - close - 4 Feb 2020
avatar brianteeman
brianteeman - comment - 4 Feb 2020

I am going to close this in the absence of a suggested solution based on the comments of @HLeithner and @mbabker above

avatar brianteeman brianteeman - change - 4 Feb 2020
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2020-02-04 13:12:05
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment