diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 5faed38279f..f2905e95181 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1148,20 +1148,22 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
// jQuery jMobile
if (! empty($conf->global->MAIN_USE_JQUERY_JMOBILE) || defined('REQUIRE_JQUERY_JMOBILE') || (! empty($conf->dol_use_jmobile) && $conf->dol_use_jmobile > 0))
{
- // We must force not using ajax because cache of jquery does not load js of other pages.
- // This also increase seriously speed onto mobile device where complex js code is very slow and memory very low.
+ // Note: We can force not using ajax because cache of jquery does not load js of other pages by setting ajaxEnabled.
if (empty($conf->dol_use_jmobile) || $conf->dol_use_jmobile != 2)
{
- print '';
- }
+ print '';
+ }
print ''."\n";
}
}