Combine multiple scripts into one script

30 views
Skip to first unread message

Mofazzal Sarker

unread,
Aug 31, 2014, 12:53:58 PM8/31/14
to pagespeed-ins...@googlegroups.com
"
  • "Combine multiple scripts into one script" I am not sure how to make it. Can anyone teach or suggest me how to combine multiple scripts into one script?. I look forward to hearing from you. 
  • Thanks and Regards,
  • Mofazzal Sarker

Rick Steinwand

unread,
Aug 31, 2014, 3:29:48 PM8/31/14
to pagespeed-ins...@googlegroups.com
Create a new, empty file and copy and paste several scripts one after another, then use the new script instead of the old on one page.

it'll look similar to this:

function1(){blablabla;}
function2
(){blablabla;}

Then run the page and check for script errors and see if everything works.

Carlos Lizaga Anadon

unread,
Sep 1, 2014, 1:11:06 PM9/1/14
to pagespeed-ins...@googlegroups.com
You can use google closure tool. Here you will find how to use it: https://developers.google.com/closure/compiler/?hl=es 
Or just use their online tool here: http://closure-compiler.appspot.com/home .

Regards. 
Reply all
Reply to author
Forward
0 new messages