Optimizations to reduce website loading time

后端 未结 14 1607
感情败类
感情败类 2020-12-07 16:12

What are some important optimizations that can be made to a website to reduce the loading time?

14条回答
  •  感情败类
    2020-12-07 16:50

    Here are a few "best practice" things:

    • Caching CSS, JavaScript, images, etc.
    • Minifying Javascript files.
    • gzip content.
    • Place links to JavaScript files, JavaScript code, and links to CSS files at the bottom of your page when possible.
    • Load only what is necessary.
    • For an existing website, before you do any of this determine where your bottlenecks are with tools like Firebug and as someone else mentioned YSlow (I highly recommend this tool).

提交回复
热议问题