elgg-facebook_theme icon indicating copy to clipboard operation
elgg-facebook_theme copied to clipboard

Why not ajax?

Open absfrm opened this issue 11 years ago • 9 comments

Hi Thank you so much for this nice theme. But , where is the ajax for this theme?

  • Like
  • post
  • comment etc

it can improve it much better

absfrm avatar Jul 07 '13 12:07 absfrm

Absolutely. I have made lots of nice changes that I will commit. I haven't done the ajax stuff, but we need that desperately and I will probably implement it within the next two weeks.

edfactor avatar Jul 07 '13 18:07 edfactor

Wow , Fantastic , thank you so much ... It will be the best :+1:

absfrm avatar Jul 07 '13 18:07 absfrm

The key is to implement it in a way that will scale without killing performance on the server for a large user base.

edfactor avatar Jul 07 '13 18:07 edfactor

Sure , with the high range of user activities , it should be much high performance

absfrm avatar Jul 07 '13 18:07 absfrm

So I want to do this on a site that currently has 6,000 users in many countries. I will probably implement it the way that Facebook does it - where your comment is added to the page in real time - but other people's additions don't come up every (x) seconds automatically. (That would be very hard to scale.) There must be some sort of reload event to do that.

I am hoping that I find some other theme that has already done this, otherwise I will probably use some cute little JavaScript library - perhaps the wonderful AngularJS - to do it.

edfactor avatar Jul 07 '13 18:07 edfactor

yes right , you can do it perfectly AngularJS is fine to work , really fast

absfrm avatar Jul 07 '13 18:07 absfrm

Whatever changes you make, submit a PR and I'll add you as a collaborator on this project.

ewinslow avatar Jul 17 '13 03:07 ewinslow

Thank you ;)

absfrm avatar Jul 17 '13 04:07 absfrm

@AF-P , this is cool stuff. How far have you gone with your changes by using AngularJS?

TomOndiba avatar Dec 09 '13 13:12 TomOndiba