On my current webpage I load the table content from a mysql db with php. But the db contains about 1500+ rows and they are all encrypted. So it takes about 3 seconds to load them everytime. So I thought about loading them via jquery. Will this be faster? Is it still safe, my current php looks if a session[‘loggedin’] variable is 1? Can I do the login in check with jquery too?
Share
Loading a large data set asynchronously will not be faster. In fact it will be slower (more requests).
But doing so might allow you to load smaller chunks of data at a time, and get a more responsive site.
This has nothing to do with jQuery though. jQuery is just a commonly used JavaScript framework that happens to include some nifty ajax-functionality.
As for your sequrity concerns, asynchronous requests are handled by the server just like any other requests, so that won’t be a problem.