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:

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support