是代码的构造会影响您的网页的加载 [英] is the Construction of the code affects the loading of your web page

查看:79
本文介绍了是代码的构造会影响您的网页的加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用php开发网页,
我想知道代码的构造是否会影响页面的加载,
示例之一是,我的页面中有5个MySQL查询,如果我减少查询数量并将2个查询加入一个查询会更好呢?
这会改变我页面的加载并改善其加载时间吗?
最后一个问题,如果我将拥有良好的代码构造,这会改善我的加载时间吗?
感谢您的支持...

Hello guys,

Im using php to develop web page,
i would like to know if the construction of my code affects the loading of my page,
one of the example is, i have 5 MySQL queries in my page, is it better if i will lessen the number of query and join the 2 queries to one query,
is this will changed the loading of my page and improve its loading time,
last question, if i will have a good construction of code, is this will improve my loading time?
Thank you for your support...

推荐答案

是的,当然可以.效果可能很小,也可能确实是戏剧性的.这完全取决于您的代码构造".

—SA
Yes, it certainly will. The effect can be minor or it can be truly dramatic. It totally depends on your "construction of the code".

—SA


这篇关于是代码的构造会影响您的网页的加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆