开发者

What is the fastest jQuery v1.4.4 Ajax content respond way by server-side?

开发者 https://www.devze.com 2023-01-26 17:04 出处:网络
What is the fastest jQuery v1.4.4 Ajax content respon开发者_运维问答d way by server-side? I use PHP and MySQL.

What is the fastest jQuery v1.4.4 Ajax content respon开发者_运维问答d way by server-side? I use PHP and MySQL.

Do I have to convert MySQL data to JSON or XML format? Or is there simpler way to have fastest Ajax respond by MySQL?

I might to use jQuery Address State for it - https://github.com/asual/jquery-address, but seems it has to load-in a full html file just for to update small peaces of content data.


Preparing JSON would be a bit faster, then XML, and it will be smaller and faster sent to client.

But really, I would focus on MySQL performance in your case. Selecting data will be times and times slower than sending a result via ajax.

0

精彩评论

暂无评论...
验证码 换一张
取 消