Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

Using VanillaStats with the DeferJs option

This discussion is related to the Consolidate addon.
BleistivtBleistivt MVP
edited August 2014 in Feedback

Continuing my other thread...

So this is more of an issue with vanillastats as it inserts javascript into the page body:

What I did is this:

if (
    && ($Sender->SelfUrl == 'dashboard/settings' || $Sender->SelfUrl == 'settings')
    && C('EnabledPlugins.VanillaStats')
) {
    SaveToConfig('Plugins.Consolidate.DeferJs', false, array('Save' => false));

so js will not be deferred to the bottom on the dashboard main page.
This can be put into Base_Render_Before, for example.

By the way, this plugin is great. Garden.CombineAssets never really worked on my setup, but this does.


Sign In or Register to comment.