PHP Classes

PreLoad Images: Generate page with preloaded images

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,090 All time: 3,431 This week: 455Up
Version License PHP version Categories
preload-images 1.0.8GNU General Publi...5HTML, Databases, Graphics
Description 

Author

This class can be used to generate page with preloaded images.

First, it can list images from a directory and store the list in a MySQL database.

The class can generate HTML with Javascript to preload all listed images in the user browser, so the next browsed pages that need the images can load much faster.

Innovation Award
PHP Programming Innovation award nominee
January 2010
Number 3


Prize: One copy of Delphi for PHP
Some sites have pages that need to present slide shows or otherwise present many images that need to be displayed without delay.

Preloading is a technique for accelerating the display of images in a Web browser. It consists in creating invisible image objects in Javascript that make the browser load the images in memory before they are presented.

This class provides a generic solution for preloading images in a Web page generated by PHP.

Manuel Lemos
Picture of riccardo castagna
  Performance   Level  
Name: riccardo castagna is available for providing paid consulting. Contact riccardo castagna .
Classes: 7 packages by
Country: Italy Italy
Age: 56
All time rank: 100637 in Italy Italy
Week rank: 195 Up9 in Italy Italy Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files folder image Files (10)  
File Role Description
Files folder imagedbimages (6 files)
Plain text file class.preloadimages.php Class file class
Accessible without login Plain text file config.php Conf. dbname dbuser
Accessible without login Plain text file index.php Example example first page
Accessible without login Plain text file viewimages.php Example example second page

  Files folder image Files (10)  /  dbimages  
File Role Description
  Accessible without login Image file img01.jpg Data image
  Accessible without login Image file img02.jpg Data image
  Accessible without login Image file img03.jpg Data image
  Accessible without login Image file img04.jpg Data image
  Accessible without login Image file img05.jpg Data image
  Accessible without login Image file img06.jpg Data image

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,090
This week:0
All time:3,431
This week:455Up