Script declarations are duplicated when caching enabled - Joomla! Forum - community, help and support
script declarations duplicated when caching enabled.
joomla 2.5.8
for example:
global cache: on
you put code in module:
refresh site times, see js code duplicated many times. if global cache: off, fine, no js duplicated!
the same with:
i found other topic here: viewtopic.php?f=615&t=719887
and here: https://github.com/joomla/joomla-platform/issues/673
these topics long time ago, still no fix!
so re-post here, please check on issue!
joomla 2.5.8
for example:
global cache: on
you put code in module:
code: select all
$document =& jfactory::getdocument();
$document->addscriptdeclaration('alert("duplicated!")');refresh site times, see js code duplicated many times. if global cache: off, fine, no js duplicated!
the same with:
code: select all
$document->addstyledeclaration()i found other topic here: viewtopic.php?f=615&t=719887
and here: https://github.com/joomla/joomla-platform/issues/673
these topics long time ago, still no fix!
so re-post here, please check on issue!
Comments
Post a Comment