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

Ajax it all!

Discussion in 'Closed Suggestions' started by Shadow, Aug 12, 2010.

  1. Shadow

    Shadow Member

    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 :)
  2. Onimua

    Onimua Well-Known Member

    No, it wouldn't and that's actually a bad use of AJAX.
    Adam Howard, Andrej, Hoffi and 4 others like this.
  3. Luke F

    Luke F Well-Known Member

    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 :)
    Adam Howard likes this.
  4. Brandon_R

    Brandon_R Guest

    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.
    Adam Howard likes this.
  5. James

    James Well-Known Member

    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".
    OperaManiac likes this.
  6. Onimua

    Onimua Well-Known Member

    Enhancements, sure, but not for the entire site (which is what this suggestion is about).
    Vodkaholic and Darkimmortal like this.
  7. James

    James Well-Known Member

    I disagree completely if we AJAX everything. Imagine the server load?!?!
    Adam Howard likes this.
  8. Luke F

    Luke F Well-Known Member

    That would need a specialised server setup to not create some serious load issues for larger sites.
  9. James

    James Well-Known Member

    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.
  10. Luke F

    Luke F Well-Known Member

    Besides the fact that it is overkill, it's not worth doing without a proper comet setup and some code to watch for tab/window unfocus to reduce unnecessary requests.
    Adam Howard and Wuebit like this.
  11. erich37

    erich37 Well-Known Member

  12. TNCclubman

    TNCclubman Well-Known Member

    ajax the everyone news feed and the your news feed.
    Nick likes this.
  13. Shamil

    Shamil Well-Known Member

    Server load? It's better for server load as the whole page isn't being regenerated again.
    Aside, I think overusing Javascript is bad, although on the subject.
  14. Shamil

    Shamil Well-Known Member

    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.
  15. James

    James Well-Known Member

    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.
  16. Nick

    Nick Well-Known Member

  17. Onimua

    Onimua Well-Known Member

    AJAXing everything is worse for the server load, not better.
    Adam Howard, Wuebit and James like this.
  18. Shamil

    Shamil Well-Known Member

    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.
  19. Onimua

    Onimua Well-Known Member

    To an extent, but AJAXing a lot of elements also means a lot more work and maintenance.
  20. Erik

    Erik Well-Known Member

    Disagree on AJAXing everything, for the reasons already mentioned. :)
    Adam Howard and Wuebit like this.

Share This Page