The points to note when optimizing website performance are:
Reduce HTTP requests: Try to reduce the number of HTTP requests that need to be initiated by the page. You can use Merge, compress, cache, etc. to reduce the number of requests.
Compress resource files: Compress CSS, JavaScript and HTML files to reduce file size and speed up loading.
Use browser cache: Using browser cache can make pages load faster and reduce server load. Cache duration and type can be set using response headers such as Expires or Cache-Control.
Use CDN acceleration: Using CDN (content distribution network), the static files of the website can be distributed on nodes around the world to provide services to users faster.
Reduce DOM operations: Avoid frequent DOM operations, because this will cause the browser to continuously recalculate the page layout and style, affecting page performance.
Compress images: Using appropriate image formats and compression rates can effectively reduce image size and speed up loading.
Use asynchronous loading: Delaying or asynchronous loading of unnecessary JavaScript code can speed up page loading time and improve user experience.
Optimize database queries: When querying databases, try to reduce the number of queries and the amount of query data, and use technologies such as indexing and caching for optimization.
Use a suitable server: Choosing a server with high performance and stability can improve the response speed and reliability of the website.
These attention points can be achieved through different optimization methods. Taking various factors into consideration, you can choose an optimization plan that suits your website.