简体   繁体   English

PHP处理和渲染页面更快

[英]PHP process and render page faster

I am developing a system using PHP & mysql, where I have a member profile page which has got so many things to display on page like connections, photos, recent activities, connection activities, full profile including personal info, education details work experience and many more. 我正在使用PHP和mysql开发一个系统,其中有一个会员个人资料页面,该页面上有很多东西可以显示,例如联系,照片,近期活动,联系活动,包括个人信息,教育详情工作经验在内的完整个人资料,以及更多。 I would like to know how should i process this page using PHP. 我想知道如何使用PHP处理此页面。 what technique should I use to process all the queries faster and render page in minimum amount of time. 我应该使用哪种技术来更快地处理所有查询并在最短的时间内显示页面。

  1. frist optimized the mysql query using joins and relationship frist使用联接和关系优化了mysql查询
  2. for user point of view , devide all the sections is block like recent activity is 1 block , photos 2nd block n bla bla bla 对于用户而言,将所有部分划分为块,例如最近的活动为1块,照片为第二块
  3. use ajax for loading the respective data , before load data show loading image. 在加载数据显示加载图像之前,使用ajax加载相应的数据。
  4. use css and js in minified mode 在最小模式下使用CSS和JS

  5. do functional and oops approch 做功能和哎呀

  6. gtmatrix is online tool which will give you some hints for your project. gtmatrix是在线工具,可以为您的项目提供一些提示。 gtmetrix.com gtmetrix.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM