开发者

Jquery ajax and my php ajax sheet?

I am using alot of jquery ajax requests for my website, and my php sheet with which the ajax in jquery points to is getting rather long!

I would like to know how many if, elseif, else statements are considered too 开发者_开发知识库many?

If I have hundreds will it slow down my site or ajax requests? How many is considered too many, and if they are too many how do I deal with it?

Thanks


My dear there is no limit of too many. As for as your concern about slow performance it always depends upon your quality of code. If you are writing quality code then there is no problem.

For Example you have sent an ajax request to a file which will return you the records from the table. Now the performance will depend how you write query, how you send back the result, how you display your result. So concentrate on writing quality of code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜