In registerAssets(), question: When to use $this->providesAsset VS $this->requireAsset
So if I'm converting a theme that comes with assets that are also in core, I understand the concept fine, but when should I use the themes asssets and when should I use what comes with core?
This is the example given
I just don't understand the why the choices were made, for example, to use the themes assets via
and to use the core assets via
I mean, why use the themes bootstrap, but not jquery? Or visa-versa?
Any clarification is appreciated
Someone asked a similar question last week about using core Bootstrap in a theme.
Regarding jQuery, I am not sure. I think with something like that, the most important thing is that it is registered, whether you are providing it or requiring it. Also, some may want to load jQuery from a specific CDN like Google or need an updated version that hasn't been included in concrete5 yet.