JHTML-JQUERY-FRAMEWORK-001
JHtml::_('jquery.framework')
JHtml::_('jquery.framework') in templates
Forcing jquery.framework from a Joomla 6 site template fights Cassiopeia/Atum asset policy and still does not fix MooTools-era code.
JHtml::_('jquery.framework') → Asset dependency, not a forced load in index.php
Symptoms people search
double jquery · bootstrap and jquery fighting
Replace this code
Swap JHtml::_('jquery.framework') for Asset dependency, not a forced load in index.php.
Joomla 3
Remove or stop calling this
JHtml::_('jquery.framework');
JHtml::_('bootstrap.framework');Joomla 4 / 6
Use this instead
// Site template: do not force jQuery.
// Extension: list jquery as a dependency in joomla.asset.json if needed.How to fix it
- 1Remove the helper from index.php.
- 2Only extensions that still need jQuery should declare it.
Also known as
jquery.framework · bootstrap.framework
Related issues
- Joomla 5 → 6JavaScript
Assuming jQuery is always on the page
JHtml::_('jquery.framework') → Declare jQuery in joomla.asset.json only if you still need it
- Joomla 5 → 6JavaScript
Joomla.JText (JavaScript)
Joomla.JText._() → Joomla.Text._() + Text::script() in PHP
- Joomla 3 → 4Templates
Protostar site template
Protostar → Cassiopeia (or a Joomla 4+ template), preferably a child template
- Joomla 3 → 4Templates
ISIS / Hathor admin templates
ISIS → Atum
- Joomla 3 → 4Templates
Beez / Beez3 templates
Beez3 → Cassiopeia
- Joomla 4 → 5Templates
Template without joomla.asset.json
templateDetails.xml only → joomla.asset.json + WebAssetManager in index.php