I'm aware that this question may be closed, but I'm really having trouble with deciding what parts of a search feature should be implemented in jQuery, AJAX requests, or basic framework design.
In general the three tasks I'm looking at are executing new search queries, applying filters/sorting, and pagination. Currently all of these features are handled by Django (which is the framework I'm using) but I've found that this approach is both slow and inflexible. I realize that there is some part of this I should really move the javascript side of the site, but I'm having trouble deciding where to draw the distinction and I'm wondering if there are a set of Web Standards to help guide me.
Executing Search queries: Basically all I do here is collect the values in a few forms, then POST a JSON object to a REST api, getting the results back as JSON.
Filters/Sorting: I could do the filtering either by making a new AJAX call to the same REST api at a slightly different endpoint, or by filtering the old list of results based on data in the JSON object. For sorting, I currently have a python module that sorts the data in a number of different ways, but this requires a new get request for each different sorting, and the logic is simple enough that it would be easy to move to Javascript
Pagination: Fairly standard here with one change, which is that I could potentially implement pagination by making another AJAX call, as the REST api I'm using lets me define the exact bound of answers that I want to return, though if I want to use a non-standard sort it wouldn't really work. Right now I'm using Django's Pagination which works, but I feel like it would be much lighter on the app if I used a jQuery solution to pagination though.
I realize the responses will be partially opinion-based, but I'm really looking for concrete reasons why I should choose some of these options over others, such as security problems, performance, or significant deviation from Web Standards.