Minifying site.js with wp_booster after chances to td_login.js

Posted in: Newspaper
Post count: 28

Dear Sirs,

I had to change the td_login.js. It seems that this file gets “minified/compressed” into a site.js (most likely due to the wp_booster script).

How can I generte a new site.js on my own? (I do not want to reactive the theme every time, I need to do it on the command line).

What are the steps to do on the command line ?

thanks

Post count: 6600

Hi,

All scripts file the theme use are collected into site site.js file: http://screencast.com/t/KTq8SvXI
The site.min.js file is the minifyed version of site.js file and it’s used by speed booster plugin.
You can make your changes to the site.js file then use Google Closure Compiler tool to minify the modified file of site.js file and replace with newly minified version into the site.min.js file.
Hope this helps!

Thanks

  • This reply was modified 11 years by Lucian.
Post count: 28

Hello Lucian,

thanks very much!

Does Newspaper Theme also have a tool included (say a php File) that will read in all the small .js files in the js directory and then generate the site.js file?
Or do i have to concatenate them manually or write my own script to concatenamte them into the site.js?

thanks

Post count: 6600

Hi,

The theme files doesn’t have included that file that gets all js and creates the site.js and site.min.js files.
If you want it you can send an e-mail at contact@tagdiv.com and make a request for it and we will send it to you. Please send an URL of this topic also.

Thanks

  • This reply was modified 11 years by Lucian.
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.