Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Vanilla 1 trying to lose some weight: can I exclude some extension's js from visitors pages?

edited July 2010 in Vanilla 2.0 - 2.8
I'm trying to reduce page load on a Vanilla 1 site.
In that process, I thought I could prevent some unnecessary files from being sent to visitors (not members).
For example, visitors will never need notifi's javascript.
Is it safe to add && $Context->Session->UserID > 0 when calling js files in the extension's default.php file?

I've tested it and I think it works but, I may miss some repercussions unknown to a non coder as myself.

Any input is appreciated. :)


  • Options
    No reason you shouldn't be able to do this - in fact, this should be in the extension anyway!
  • Options
    Thanks for your reply Stash.

    Some days went by and still no problems... :)
    Saved almost 300KB!
Sign In or Register to comment.