mirror of
https://github.com/e107inc/e107.git
synced 2025-08-26 15:54:43 +02:00
Defer header javascripts to footer when js/css caching is enabled.
This commit is contained in:
@@ -564,8 +564,11 @@ e107Event.trigger('loaded', null, document);
|
||||
});
|
||||
",'prototype',5);
|
||||
|
||||
e107::getJs()->renderCached('js');
|
||||
e107::getJs()->renderJs('header_inline', 5);
|
||||
if(empty($pref['jscsscachestatus'])) // render in header when cache disabled, otherwise render in footer. (see footer_default.php)
|
||||
{
|
||||
e107::getJs()->renderCached('js');
|
||||
e107::getJs()->renderJs('header_inline', 5);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user