dozc58418381 2013-07-18 19:54
浏览 14
已采纳

php是否包含减少页面加载? [关闭]

I was just wondering that separating header, navigation, layout, sidebar, footer into apart pages and with php include function managing them just to be able to reduce time of work is bad approach? Bad influence on performance?

  • 写回答

5条回答 默认 最新

  • douwo1862 2013-07-18 19:57
    关注

    This will have such a minimal impact (if any) on overall page load performance that it is not worth considering until you are probably serving millions of requests per minute, at which point you would probably have already switched to a compiled language.

    This should never be a determining design factor in PHP unless you are just doing something silly like breaking your code up into thousands of includeable files which need to be loaded.

    Do what makes your code more maintainable.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥20 matlab计算中误差
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊