modAjaxify a simple ajax page loader
Creator: Dimitris Halvatzaras (halvid)
About modAjaxify a simple ajax page loader
The modAjaxify Extra automatically parses any (or selected) content links and ajaxifies them without destroying the actual link which makes it SEO friendly. That means that if the link is clicked the page will not be reloaded but the link will be loaded with ajax in a specific container (html element) as configured by the developer. Although if you open the link in a new tab it will load normally.
modAjaxify is mainly a jquery plugin which is strongly coupled with MODX Revolution. Nevertheless it can be used on its own as a plain jquery plugin.
The plugin has many options to control where and what to ajaxify and also events that signify the start/progress/end of loading which is very useful for creating loading spinners.
Another useful feature of the plugin is that is able to preload any content images before rendering the content in the target container.
Demo and documentation can be found here
Information
Released
March 16, 2018
Supported Database
MySQL
License
GPLv2
Supported Versions
2.4 - Current
Downloads
4,735
Instructions
This Extra can be started with zero configuration just by placing the [[$ajaxifyInit]] in the head of the template.
The chunk contains also a demo spinner as a loading alert.
For information visit (this page is also an example of usage):
http://sofar.gr/modAjaxify-Documentation.html
For any bugs please report at info[at]sofar.gr
Dependencies
====================================
jquery
jquery.history.js
preloadjs-0.6.1.min.js
The Extra comes with an init chunk so you don’t have to worry about the dependencies. The chunk makes a jquery check to avoid any conflicts. We strongly recommend to check the depended js libraries which are included by the chunk in case the create some kind of conflict with your code.
New in 1.3.7-beta
Changelog for modAjaxify MODx Revolution.
modAjaxify 0.8
====================================
- First beta version
Test it on Safari, Firefox, Internet Explorer, Android, iOS
2015.7.9 modAjaxify 1.0.0-beta
----------------------------------
-Added param for excluding links from been ajaxed based on the extention of the url. This takes care for links that include attachments
-Added jquery existance check
-Added sample css spiner
2015.9.24 modAjaxify 1.2.0-beta
----------------------------------
-Added handling for first page loading
-Added retina image preload
-Fixed bug regarding missing images in ajax loaded pages
-Fixed bug on links without href
2015.12.16 modAjaxify 1.3.0-beta
----------------------------------
-Bug fixed related to the automated activation of menu items. In some cases was failyng whenver full paths were used.
2015.12.24 modAjaxify 1.3.1-beta
----------------------------------
-Bug fixed for handler onSuccess, the 'this' reference was null now it refers to the container that will render the loaded content.
2016.1.7 modAjaxify 1.3.1-beta
----------------------------------
-Bug fixed for handling non-friendly urls
2016.2.9 modAjaxify 1.3.1-beta
----------------------------------
-Minor bug fixes
-Easy google analytics support
2016.6.24 modAjaxify 1.3.5-beta
----------------------------------
-Minor bug fixes concerning images with undefined src
-Added disable option for omiting forms during ajax calls
-Easy google analytics support
2016.12.29 modAjaxify 1.3.6-beta
----------------------------------
-Minor bug fixes concerning images with wrong src
-Changed name of demo chunk so that you will not loose any changes that you may have done in the previos instalation.
2018.3.16 modAjaxify 1.3.7-beta
----------------------------------
-Major bug fixe concerning jquery.history.js CDN
-Add image lazy loading capability with deticated small images as preloaders