PHP Classes

PHP JavaScript Loader: Load JavaScript libraries in the current Web page

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-06-22 (14 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 95 This week: 9All time: 9,674 This week: 19Up
Version License PHP version Categories
js-loader 1.0.0Custom (specified...5HTML, PHP 5, Templates, Compression
Description Author

This package can load JavaScript libraries on the current Web page.

It can add a list of JavaScript files for use on the current Web page.

The package processes a template that generates PHP code that dynamically combines JavaScript files when the generated processed template code will execute.

It can also pack the JavaScript files to reduce the final JavaScript code size.

Innovation Award
PHP Programming Innovation award nominee
June 2022
Nominee
Vote
Every site needs to use JavaScript code to implement features of Web pages that require dynamic changes.

The list of JavaScript files that may be necessary to load on a Web page may be longer depending on the kind of features developers want to provide, and it may be tedious to specify each file in the page HTML.

This package provides an alternative method for loading JavaScript all at once.

It uses its template engine to combine all the necessary JavaScript libraries in a single JavaScript and stores it in a cache file to make it faster by avoiding processing the JavaScript template again.

Manuel Lemos
Picture of Matous Nemec
Name: Matous Nemec <contact>
Classes: 8 packages by
Country: Czech Republic Czech Republic
Age: ???
All time rank: 318232 in Czech Republic Czech Republic
Week rank: 20 Up1 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imageJsLoader (2 files, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file license.md Lic. License text

  Files folder image Files  /  JsLoader  
File Role Description
Files folder imageParsing (4 files)
Files folder imageTemplating (2 files)
  Accessible without login Plain text file base.tpl Data Auxiliary data
  Plain text file Loader.php Class Class source

  Files folder image Files  /  JsLoader  /  Parsing  
File Role Description
  Plain text file DefaultParser.php Class Class source
  Plain text file IParser.php Class Class source
  Plain text file JavaScriptPacker.php Class Class source
  Plain text file ShrinkParser.php Class Class source

  Files folder image Files  /  JsLoader  /  Templating  
File Role Description
  Plain text file Template.php Class Class source
  Plain text file TemplateEngine.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:95
This week:9
All time:9,674
This week:19Up
For more information send a message to info at phpclasses dot org.