mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 01:30:32 +02:00
Defer header javascripts to footer when js/css caching is enabled.
This commit is contained in:
@@ -282,6 +282,11 @@ if (function_exists('theme_foot'))
|
||||
// F any included JS footer scripts
|
||||
// DEPRECATED - use e107::getJs()->footerFile('{e_PLUGIN}myplug/js/my.js', $zone = 2)
|
||||
//
|
||||
if(!empty($pref['jscsscachestatus']))
|
||||
{
|
||||
e107::getJs()->renderCached('js');
|
||||
e107::getJs()->renderJs('header_inline', 5);
|
||||
}
|
||||
global $footer_js;
|
||||
if (isset($footer_js) && is_array($footer_js))
|
||||
{
|
||||
|
Reference in New Issue
Block a user