1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained XF Optimise 0.1.0

Features: minify Javascript, defer Javascript, minify HTML (recommended XenForo 1.0 only)

  1. Luke F
    Compatible XF Versions:
    • 1.0
    Using this addon with XenForo 1.1 or higher is not recommended - only the defer Javascript feature will have any benefit and there are a number of compatibility issues.

    Please consider a donation to encourage continued support of this free addon :)

    • Minify all Javascript with UglifyJS (beats even Closure Compiler)
    • Defer Javascript loading (basic implementation; moves script tags to before </body>)
    • Minify HTML (not really recommended, but you can give it a try :p)


    1. Upload contents of upload folder to your forum root.
    2. Ensure the directories /js and /js-old are writeable by PHP (chmod or otherwise).
    3. Install addon-XFOptimise.xml file.
    4. Go to ACP > Applications > Minify Javascript and wait for around 30 seconds for it to complete the minification process. May take longer since each file must be sent to and processed individually by my server.
    5. If you are running nginx (if not, you should be ;)), see here to take advantage of the .gz files.
    Please note that this overwrites all .js files in /js, though a backup is created in /js-old.

    Also you should run the Minify Javascript process again after upgrading XenForo or installing addons with Javascript included.



    0.0.x to 0.1.0:

    Upload contents of upload folder to your forum root, overwriting all files.
    1. Upgrade addon using addon-XFOptimise.xml file.


    0.1.0: (24/04/2011)
    • Added configurable Javascript Blacklist, with existing defaults along with Twitter widgets and AdBrite.
    • Improvements to permissions etc. when running minify Javascript (thanks xfrocks).
    0.0.3: (22/03/2011)
    • Switched to a more reliable file iterator (SPL extension required now).
    • Fixed permissions issue (only superadmins had access, now controlled with 'option' flag as previously intended).
    0.0.2: (22/03/2011)
    • Possibly fixed array_merge error in Minify Javascript function.
    0.0.1: (21/03/2011)
    • Initial release
    Jeremy P likes this.