How to improve the performance of web pages, and the overall performance of a website by minimise front-end processing and additional server/client DNS requests required to fully load each page.
- Identify the areas/scripts for a website which are frequently used
- Identify scripts which take the longest time to process or load
- Identify DNS Requests that can be removed from front-end pages
- Create scripts to perform background processing, then store website content (HTML) in a database table.
- Replace code in scripts to retrieve the pre-formatted content from a database
The techniques described below focus on reducing the processing requirements and DNS requests required to generate and load a page for both the server-side and client-side aspects of a web application or website. The steps explain how to identify, and reduce the amount of processing required by the front-end server of a website by performing background tasks to complete processing which would usually take a long time to complete. This includes identifying scripts/pages which are frequently used, and considering reducing the loading time by retrieving pre-prepared html from a database instead of processing and displaying from the front-end script. The background tasks will periodically execute scripts which will perform the processing required to generate and store the pre-formatted html in a database table ready for retrieval when loading the web page.