⟩ Explain a few easy ways to optimize a website. Where would you start?
There are many ways to improve the performance of a website and developers may have ideas specific to the nature of each project. A few of the more common and easy to implement optimizations are:
☛ Minimize CSS and JS code to save a few hundred kilobytes of each page load.
☛ Have all assets compressed in the most appropriate format and at optimal settings (a good balance between quality loss and speed gain in important).
☛ Enable server side caching mechanisms (Memcached, Redis, gzip compression, APC, etc.).
☛ Serve responsive images according to device screen size and pixel density and only load the appropriate ones for the user's case.
☛ Write clean and concise HTML, don't include compiled frameworks, stop loading unused scripts or CSS modules.