Hi everybody, sorry for my poor english.
I made a template for my elgg site, and I integrated history.js. All pages and actions are both ajaxified. The result is changing page or doing actions take less than 0.5 seconds, often less. And I can make cool effect during object deletion, adding comment and more...
The site is still under development and testing. You can take a look at dev.ggouv.fr.
Biggest advantage I see about performance is that all javascript librairies are loaded the first time an user go to the site, and that's all.
Just for notice, the site is on nginx server, and I use webfont icon. Adding and modifying comment are ajaxified too.
Bad for you, code to do full ajax is a little bit anywhere in my big template : https://github.com/ggouv/elgg-ggouv_template
So, if you want to see how I do that, take a look at the begining of this js file :
https://github.com/ggouv/elgg-ggouv_template/blob/master/views/default/ggouv_template/js.php
And this page :
https://github.com/ggouv/elgg-ggouv_template/blob/master/views/default/page/default.php
https://github.com/ggouv/elgg-ggouv_template/blob/master/views/default/page/elements/reinitialize_elgg.php
https://github.com/ggouv/elgg-ggouv_template/blob/master/start.php
https://github.com/ggouv/elgg-ggouv_template/blob/master/views/default/js/elgg.php
Like you can see, I need to reaload some stuff in elgg.ggouv_template.reloadTemplateFunctions().
I forked the reinitialize_elgg.php file to load it in each ajax call and execute it with eval().
And of course, all js library are loaded the first time in the start.php.
Ok, the first load can be longer than a normal elgg site, but after that, it's realy faster.
I don't know about security, but if actions files are correctly protected, this is normaly not a problem.
I didn't got time to explain more, sorry...
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cim@manacim

Cim - 0 likes
- mariano@marianito

mariano - 0 likes
- ManUtopiK@ManUtopiK

ManUtopiK - 0 likes
- Cim@manacim

Cim - 0 likes
- ura soul@tunist

ura soul - 0 likes
You must log in to post replies.interesting stuff here
Error Fatal
markdown_wiki:utilities no es una librería registrada
@mariano I removed tinymce plugin and replaced it by my own wysiwym using markdown syntax with a live preview. Install this plugin : https://github.com/ggouv/elgg-markdown_wiki
any news on this? i would love to make my site fully ajax based
this is a necessary step for performance and usability, for sure.
i am partway through ajaxing the tabbed panels on my site.. since without that the navigation experience is quite abrasive to me. i have done the main entity lists.. soon i will start the others.
most likely i will be able to release a plugin to the community when i am finished.