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 (1)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-06-22 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 138 This week: 10All time: 9,138 This week: 18Up
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
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:138
This week:10
All time:9,138
This week:18Up
User Comments (1)
Thats a very great class !
19 days ago (José Filipe Lopes Santos)
60%StarStarStarStar
 
For more information send a message to info at phpclasses dot org.