www.webdeveloper.com
Results 1 to 7 of 7

Thread: How to compress multiple js files including jquery to one

  1. #1
    Join Date
    Dec 2010
    Posts
    10

    Question How to compress multiple js files including jquery to one

    Dear pals,
    I have an online app site which need 11 JS files including jQuery & D3.js files. I need to compress it into a single file
    and it's easy to use . I check some but need node.js and complex stuffs. I found http://jscompress.com/ but it's not working Application error in web site . Please advise a solution.

    Thanks,
    Anes

  2. #2
    Join Date
    Jul 2011
    Posts
    131
    https://github.com/dfsq/compressJS.sh but it is only for Linux

  3. #3
    Join Date
    Dec 2010
    Posts
    10

    Question

    Quote Originally Posted by kromol View Post
    https://github.com/dfsq/compressJS.sh but it is only for Linux
    Dear kromol,
    We are using Windows pc , please suggest a solution for Windows too.

    Thanks,
    Anes

  4. #4
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623

  5. #5
    Join Date
    Dec 2010
    Posts
    10

    Question js-min not work

    Quote Originally Posted by DanInMA View Post
    Dear Dan,
    As suggest in tutorial , I download the code from github and try it in my local wamp installation . The target file
    is created but it's blank (0 KB) content .

    pls check the attachment

    Download


    Advise me

    Thanks,
    Anes

  6. #6
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,348
    Why are you trying to compress Javascript?

    You just include them in a <script tag and be done with it.

    If you really want to be fancy, I can suggest that you load via AJAX.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

  7. #7
    Join Date
    Oct 2013
    Posts
    4
    There are few javascript online tools available at http://codebeautify.org you can try.. this might help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles