Hi, I'm using a php script that compress in gzip and in one file all my javascript files.
The script and an explanation can be found here: http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files The script works very well, and times of download are decreased a lot. Before implementing this method, I was using this syntax <script type="text/javascript" src="lib/jquery/jquery-1.2.2.min.js"></ script> <script type="text/javascript" src="lib/jquery/ jquery.dimensions.pack.js"></script> <script type="text/javascript" src="lib/jquery/jquery.dropshadow.js"></ script> <script type="text/javascript" src="public/js/item.js"></script> After I use this one: <script type="text/javascript" src="http://www.gianiaz.net/jquery/ combine/combine.php?type=javascript&files=lib/jquery/ jquery-1.2.2.min.js,lib/jquery/jquery.dimensions.pack.js,lib/jquery/ jquery.dropshadow.js,public/js/item.js"></script> (if you call in your browser the link you can see the result). Now, If I use this method including the dropshadow.js plugin I got a strange error in firebug: eval((function (p, a, c, k, e, r) {e = function (c) {return (c < a ? "" : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36));};if (!"".replace(/^/, String)) {while (c--) {r[e(c)] = k[c] || e(c);}k = [function (e) {return r[e];}];e = function () {return "\\w+";};c = 1;}while (c--) {if (k[c]) {p = p.replace(new RegExp("\\b" + e(c) + "\\b", "g"), k[c]);}}return p;}) ("(5($){$.19={P:'1.2'};$.u(['j','w'],5(i,d){$.q['O'+d]=5(){p(!3[0])6;g a=d=='j'?'s':'m',e=d=='j'?'D':'C';6 3.B(':y')?3[0]['L'+d]:4(3,d.x()) +4(3,'n'+a)+4(3,'n'+e)};$.q['I'+d]=5(b){p(!3[0])6;g c=d=='j'?'s':'m',e=d=='j'?'D':'C';b=$.F({t:Z},b||{});g a=3.B(':y')?3[0] ['8'+d]:4(3,d.x())+4(3,'E'+c+'w')+4(3,'E'+e+'w')+4(3,'n'+c)+4(3,'n'+e); 6 a+(b.t?(4(3,'t'+c)+4(3,'t'+e)):0)}});$.u(['m','s'],5(i,b) {$.q['l'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b=='m'?a:$(h) ['U'](),b=='s'?a:$(h)['T']()):3['l'+b]=a}):3[0]==h||3[0]==r? S[(b=='m'?'R':'Q')]||$.N&&r.M['l'+b]||r.A['l'+b]:3[0]['l'+b]}}); $.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f- =4(o,'K');8.k-=4(o,'J');9.f+=4(7,'H');9.k+=4(7,'Y');v={f:8.f-9.f,k: 8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$. 14(a,'z')=='13'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b, 18))||0}})(X);", 62, 72, "|||this|num|function|return|offsetParent| offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left| padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase| visible|position|body|is|Right|Bottom|border|extend|while| borderTopWidth|outer|marginLeft|marginTop|client|documentElement| boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop| scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS| parseInt|static|css|tagName|test|jquery|true|dimensions".split("|"), 0, {})) is not a function [Break on this error] (function($){ The error is fired at the begin of the dropshadows code. If I return to the first syntax the error is not fired. Looking at the plugin source code, I can see that the writing style is different from others plugins I use, but I don't have the knowledge to modify it. I have 2 questions: - can anyone help me correct the code? - Why the error is not fired if I call the plugins in separate way? Thank you all