Load a page with query param makes 2 ajax call

Load a page with query param makes 2 ajax call

avalletavallet Posts: 1Questions: 1Answers: 0

Hello,
I'm working with a Datatables on Symfony and I discovered that when i'm loading a page with already query params like :

https://exemple.com/admin/user/#order[0][]=asc

I'll have 2 call ajax to load Datatables data. A first one to initialize with all the data and the second one to filter.
It is a normal behavior ? My datatables is pretty slow so double call is a bit problematic.

Is there a way to get only datas filtered ?

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Nope not at all. Are you using something like the deep linking plug-in for DataTables to do that initial setup?

    We'd really need a link to a test page showing the issue to be able to offer much help here.

    Allan

Sign In or Register to comment.