PHP Classes

Loading Div: Display an animation while a page is loading

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 2,770 All time: 1,367 This week: 88Up
Version License PHP version Categories
loading-div 1.0.0GNU General Publi...4.0HTML


This class can be used to display an animation while a page is loading.

It generates HTML and Javascript to be outputted in the beginning of a page that makes an animated GIF image appear over the page while it is loading.

The animated image disappears when the pages finishes loading.

Innovation Award
PHP Programming Innovation award nominee
November 2009
Number 4

Prize: One downloadable copy of Komodo IDE
Some pages take a while to load because they have several elements that need to be retrieved remotely before they can be displayed.

The user needs to be patient while the page is loading. In this situation it is better to give some feedback during the load of the page.

This class provides a simple but effective solution to give some feedback to the user while a page is loading.

Manuel Lemos
Picture of Gianluca Zanferrari
  Performance   Level  
Name: Gianluca Zanferrari <contact>
Classes: 19 packages by
Country: The Netherlands The Netherlands
Age: 57
All time rank: 1674 in The Netherlands The Netherlands
Week rank: 441 Down6 in The Netherlands The Netherlands Down
Innovation award
Innovation award
Nominee: 5x

  • loadingDiv
  Files folder image Files  
File Role Description
Plain text file class.loading.div.php Class Main class
Accessible without login Plain text file example.php Example Example file
Accessible without login Image file loading.gif Data animated gif

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,367
This week:88Up
User Ratings User Comments (3)
 All time
I loved it :p
14 years ago (Tim)
Really usefull script very small
14 years ago (guillermo garcia)
Oh shit! This site is for PHP Classes.
14 years ago (Thieres Tembra)