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)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 169 This week: 1All time: 8,846 This week: 571Up
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
Number 2
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: 297932 in Czech Republic Czech Republic
Week rank: 420 Up4 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:169
This week:1
All time:8,846
This week:571Up
User Comments (1)
Thats a very great class !
1 year ago (José Filipe Lopes Santos)
60%StarStarStarStar