1
Vote

Compress & Combine script

description

I am using UpdateProgressOverlayExtender for quite a while and it is great. Now I have updated my project to version 3.5 and I had to update the extender with the latest version.
It works well, but then I was working is to improve performance in my project, so one thing I was looking into was to combine and compress the scripts. I came across a good and simple solution that combine all of my project scripts stored in WebResource & ScriptResource and gzip them. That includes UpdateProgressOverlayExtender script.
 
http://madskristensen.net/post/Optimize-WebResourceaxd-and-ScriptResourceaxd.aspx
 
When I do this, I got an error:
 
dx is not defined
http://myproject/js.axd?path=%2fmyproject%2fWebResource.axd%3fd%3dNbiDgzhgWKGUmfYjs-uztA2%26amp%3bt%3d633595372183430636,%2fmyproject%2fScriptResource.axd%3fd%3dBxsiBiHW0B6bDbl-M1wP7lDN3OfBDXKbXAI70shYKpSpQ0O9loDeT6gtgeLQGKg7uPLrJ3o8B6KR3_y21Ik80TWHl5xmnxcNB1TQ80aHDdg1%26amp%3bt%3dffffffffe969503d,%2fmyproject%2fScriptResource.axd%3fd%3dBxsiBiHW0B6bDbl-M1wP7lDN3OfBDXKbXAI70shYKpSpQ0O9loDeT6gtgeLQGKg7bMtUgmvhl41xHTeGzl-_SZuVFBB7DDu0QgeUI8GcUDY1%26amp%3bt%3dffffffffe969503d,%2fmyproject%2fScriptResource.axd%3fd%3dsPnkYyJyXJZ6i0r0OfWWcZIOtZokyVWXRQLT0FwKMmFe9Ia7p595AtVtf1r6fo-FvxpWjtaSeAWLA8fi1ouf9aGgy_IDmRKVDgYSKTi4-9fpgsCCu46En2XST6BQEvc90%26amp%3bt%3dffffffff914c5d8e
Line 2618
 
Is this something someone can help me?
 
the script is there, loaded on the page, I can see if go straight to the URL, I got the script Response correctly, but I don't know why dx is undefined.
 
Any clues?
 
Thanks
Leo

comments

ljcorreia wrote Jul 31, 2009 at 4:20 PM

Hi there,

I got it working now...
It was a problem with UpdateProgressOverlay.js Line 190 where there is a comment ("//TODO: Move to common class");

Because I am using my Handler to supress spaces, remove line-brake, etc; it was commenting out everything after that line.

I just remove the comment and it worked like a charm... Thanks Raj for this nice extender.

All the best

Leo.

wrote Feb 13, 2013 at 7:16 PM