-
Notifications
You must be signed in to change notification settings - Fork 1
Home
oyagev edited this page Sep 13, 2010
·
3 revisions
Welcome to the PHP-JSLoader wiki!
PHP-JSLoader is intended to help websites that are constantly being developed and modified.
Basically, JSLoader is used to combine multiple javascript files into one web-readable resource. This gives both flexibility and performance when the website and JS scripts are constantly changing.
How does it work?
On first load, JSLoader will generate one javascript file for any combination of multiple js files (order doesn’t count…) and store it on a web available space.
On the following requests, JSLoader will search if a combine file exists for the requested combination. If it does, it will serve it rather than re-generating it.
Why is it good for me?
- The client loads only one JS file, no matter how many JS file the system is composed of.
- If the developer change the a single byte in one JS file, the whole combination will be regenerated. This will keep your client updated while avoiding the browser cache, as the new combination has a new filename.
- You may integrate text filters and modifiers that will work each time a combination is generated. You may, for example, minify the newly generated code.
Examples: soon!