Author:
TwistedInteractive
Version:
1.0
Released:
5 August 2011
Category:
Multimedia

Browse

Description

Ajax Images

This extension gives you the ability to load the images on your website with JavaScript. This gives the advantage that for website with a lot of images (like an image gallery for example) you can create a preloader with a progress bar (for example) to give the visitor the best user experience.

In order to use this extension you need to include jQuery and the plugin shipped with this extension.

Example markup

<script type="text/javascript" src="/extensions/ajax_images/assets/ajax_images.js" />
<script type="text/javascript">
    $(function(){
        $.ajaxImages({
            progress: function(p){
                // Here you can put some code for your progressbar. 'p' is a parameter from 0 to 1
            },
            complete: function(){
                // Here you can put some code to execute when everything is done loading.
            }
        });
    });
</script>

Note on background images

Background images (in CSS) are not preloaded by this extension. If you wish to preload these images, you need to put the images used in your CSS-files in your HTML-file, and hide them (as described in this guide).

This way, the images that are used as backgrounds are already loaded and cached by the browser and included in your progress bar.

Repository

https://github.com/TwistedInteractive/ajax_images

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details