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

How to run uncompressed JavaScript files

AndyB

Well-known member
#1
In order to modify JavaScript files, what I do is run the "full" uncompressed version of JavaScript files on my forum. I have a dedicated server so the speed difference isn't noticeable. Here are the steps to run uncompressed JavaScript files on your forum.

1) Edit library/config.php and add the following:

$config['debug'] = true;

2) In your Admin CP navigate to:

Home > Options > Debug Option

3) Select --> Use uncompressed files from js/xenforo/full/

4) Edit library/config.php and change the following:

$config['debug'] = false;

At this point your forum will use the uncompressed JavaScript files and you can easily make modifications to these files to enhance your forum editor and other features that use JavaScript.
 

AndyB

Well-known member
#3
It isn't going to be noticeable on your server but more on the visitors going to your site.
Hi BamaStangGuy,

I don't have a local server, so all my testing is done on a web hosted server. The increase in time to access the full JavaScript code as opposed to compressed JavaScript code is only milliseconds in time difference.
 
#4
When you have thousands of visitros, miliseconds can be importante. Is there a way to do modifications in JS files and then compressing them?