How to minify different javascript files at runtime using Java -


i'm trying build (or find existing 1 can use) web filter compress javascript file @ runtime. i've tried building 1 based on yuicompressor, i'm getting weird errors out of when try , pass string based source instead of actual file.

now i'm expecting bombarded responses 'real time compression/minification bad idea' there reason i'm not wanting @ build time.

i've got javascript web application lazy loads it's javascript. load needs. javascript files can specify dependencies , have filter concatenate requested files , dependencies not loaded single response. means there large number of different combinations in javascript sent user makes trying build bundles @ build time impractical.

so restate. ideally i'm looking existing real time javascript filter can plug app.

if 1 doesn't exist i'm looking tips on can use building blocks. yuicompressor hasn't quite got me there , googleclosure seems web api.

cheers, peter

i have filter concatenate requested files , dependencies not loaded single response

sooo.. why not minify prior loading/concatenating them?

(and yes, compression on fly horribly expensive , definitely not worth doing every .js file served up)


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -