JHTML-BEHAVIOR-KEEPALIVE-001
JHtml::_('behavior.keepalive')
behavior.keepalive
Keepalive still exists but should be a WebAsset, not a MooTools behavior.
JHtml::_('behavior.keepalive') → keepalive web asset
Symptoms people search
session dies while editing · keepalive
Replace this code
Swap JHtml::_('behavior.keepalive') for keepalive web asset.
Joomla 3
Remove or stop calling this
JHtml::_('behavior.keepalive');Joomla 4 / 6
Use this instead
$wa->useScript('keepalive');
// or HTMLHelper::_('behavior.keepalive') if the alias still maps on J4How to fix it
- 1Register keepalive via WAM on long admin forms.
Also known as
behavior.keepalive · keepalive
Related issues
- Joomla 3 → 4JavaScript
behavior.framework (MooTools)
JHtml::_('behavior.framework') → Do not load MooTools — use vanilla JS or WebAssetManager
- Joomla 3 → 4JavaScript
JHtmlBootstrap::modal()
JHtmlBootstrap::modal() → HTMLHelper::_('bootstrap.renderModal')
- Joomla 3 → 4JavaScript
Chosen.js (formbehavior.chosen)
JHtml::_('formbehavior.chosen') → Core styled <select>, Choices.js, or Tom Select
- Joomla 3 → 4Joomla API
JHtmlBatch
JHtmlBatch → Layouts joomla.html.batch.*
- Joomla 4 → 5JavaScript
addScript() / addStyleSheet() vs WebAssetManager
$doc->addScript() → WebAssetManager + joomla.asset.json
- 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