XF Optimise

xF1 Add-on XF Optimise 0.1.0

No permission to download
Compatible XF Versions
  1. 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.

  • 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
6 KB
First release
Last update

More resources from AnimeHaxor