• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Ajax it all!

#1
Hello, I see you use Ajax here in xenforo, my suggestion is use Ajax everywhere. so instead of loading, we get ajax to post a message, load the pages, everywhere.

Would be much friendlier then seeing loading bars and stuff :)
 

Luke F

Well-known member
#3
No, because it breaks SEO, breaks the site for anyone without Javascript, stops the browser's loading bar/animation, looks awful and is difficult to create a proper permalink system for.

There is a reason why most sites don't do it :)
 
#4
Hello, I see you use Ajax here in xenforo, my suggestion is use Ajax everywhere. so instead of loading, we get ajax to post a message, load the pages, everywhere.

Would be much friendlier then seeing loading bars and stuff :)
That is not the philosophy behind this software. Add javascript enhancements for users that can handle it but let browsers that don't have it still be usable.
 

James

Well-known member
#5
I do feel that more AJAX could be used than what is already being used... such as fetching new posts whilst replying to a thread and perhaps auto-updating the "Everyone's News Feed".
 

Luke F

Well-known member
#8
I do feel that more AJAX could be used than what is already being used... such as fetching new posts whilst replying to a thread and perhaps auto-updating the "Everyone's News Feed".
That would need a specialised server setup to not create some serious load issues for larger sites.
 

James

Well-known member
#9
That would need a specialised server setup to not create some serious load issues for larger sites.
Larger sites could just set a time interval. Check for new feeds every X seconds/minutes... or it could monitor server load and only fetch new updates when the load isn't high :) how awesome would that be.
 

Shamil

Well-known member
#14
Idea from here.

Live Topic is an AJAX system, by which if a thread has been very recently posted in, it becomes "live".

The situation would be such that if someone wanted to post in it, but at the same time, someone else posted in it, such that their post updated the thread before the user's, the user would receive a message indicating so, and the thread would be updated. The user is then given an opportunity to amend his/her post accordingly.

I think the idea and logic behind that can be implemented more elegantly, but, implemented in such a way that load is potentially reduced, or normalised.
 

James

Well-known member
#15
I agree. It's been discussed a few times and I still agree with it ;)
Properly implemented it could be expanded to other things such as Everyone's News Feed.
 

Shamil

Well-known member
#18
AJAXing everything is worse for the server load, not better.
There's only so much you can go. I mean, you're not going to AJAX the whole page. That's just silly. In that sense though, everything is being loaded less, and the architecture would be that everything would be loaded on start, thus, content would not have to be regenerated, thus, only essential bits retrieved when required/necessary, and thus, less load.
 

Onimua

Well-known member
#19
There's only so much you can go. I mean, you're not going to AJAX the whole page. That's just silly. In that sense though, everything is being loaded less, and the architecture would be that everything would be loaded on start, thus, content would not have to be regenerated, thus, only essential bits retrieved when required/necessary, and thus, less load.
To an extent, but AJAXing a lot of elements also means a lot more work and maintenance.