1. 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

Discussion in 'XenForo Development Discussions' started by AndyB, Oct 26, 2013.

  1. AndyB

    AndyB Well-Known Member

    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.
  2. BamaStangGuy

    BamaStangGuy Well-Known Member

    It isn't going to be noticeable on your server but more on the visitors going to your site.
  3. AndyB

    AndyB Well-Known Member

    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. Soyuz

    Soyuz Member

    When you have thousands of visitros, miliseconds can be importante. Is there a way to do modifications in JS files and then compressing them?
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    There are online minifiers to accomplish what you want b

Share This Page