Link to home
Start Free TrialLog in
Avatar of derrida
derrida

asked on

problem combining and minifying javascript files

hi
i am trying to use: minify to combine and minify my javascript files.

i have about 7 files.

but without it all works and after that nothing works.

what can be the problem?
maybe i sould still give 7 request but for each minifies version?

i really thought that this would be simple sice i do the same with my css and it works great.

best regards
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of derrida
derrida

ASKER

hi
first thanks for the answer.

can i use it when developing on my local machine?
and another question: it just minify but not combine files?

best regards
<<can i use it when developing on my local machine?>>
Yes

<<and another question: it just minify but not combine files?>>
It just minifies, but it doesn't combines.
You can combine the files and give it to this tool for minification
Avatar of derrida

ASKER

hmmm well since i`m not a javascript guy, and i use various plugins and some of my own code, i`m not sure how to combine them.
will there be problems with each plugin use of the jquery ready code?
do i need to mess with the plugins code? i prefer not.
can i just paste each file to the textaria one after another and then minify?

best regards
<<can i just paste each file to the textaria one after another and then minify?>>
Yes
Avatar of derrida

ASKER

hi
i have tried to paste the files and got these errors, maybe you can tell me what i can do about them?

JSC_TRAILING_COMMA: Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. at line 1038 character 1
}
^
JSC_TRAILING_COMMA: Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. at line 1048 character 1
}
^

best regards
can you post the line 1038 and 1048?

Also, this compiler has a fairly extensive documentation on these error code and suggestions for them. please have a look at that website
Avatar of derrida

ASKER

i`ll read there.

regarding the lines: its 7 documents so i have no idea yet where they are.

in any case i really appriciate your help, it was very needed.
Avatar of derrida

ASKER

great tool and great help