1. wecombine
  2. Commercial Templates
  3. Wednesday, 03 May 2023
  4.  Subscribe via email
dear joomla51 team,
i m using jch optimize and have the "combine js files"-function activated. it all works fine, only around 13 bootstrap files are loaded directly and not included in the js-file.
do we need all bootstrap files? is there a way to exclude some files?

jch support wrote:

JCH Optimize doesn't combine JavaScript modules. These cannot be combined. Scripts with the type="module" attributes are modules.

Scripts with the "nomodule" attributes are also ignored. These scripts target older browsers and are not used by modern browsers—no point in optimizing these files. Also, you cannot combine these files with other files that modern browsers will use.

JavaScript files that are deferred or loaded asynchronously are also ignored, as these files are considered already optimized. Combining these files into a file that may not be deferred will only lower optimization.


looking forward for your feedback,
best
bart

btw: i m using joomla 4 with chelsea template
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Bart

It really depends on how many of Joomla's frontend features you intend to use. For example, if displaying just single articles you could remove the majority of the Bootstrap library however if you are using frontend editing then you will likely need all of it.

Personally, I am not sure you will benefit that much and it could cause you some issues down the line. For example, extension developers will often assume you have the default Joomla Bootstrap. Removing certain components may cause them to break.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
If you do wish to customise (Joomla 4), you can edit your templates.. ../templates/[YourTemplate]/scss/template.scss. Comment out the components you do not wish to use and then compile to your ../templates/[YourTemplate]/css/base/template.css

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.