We can use the following ways to optimize the scalability and efficiency of a website :
* Reducing DNS lookup
* Avoiding URL redirects
* Avoiding duplicate codes
* Avoiding unnecessary images
* Leveraging browser caching
* Deferring parsing of JavaScript
* Avoiding inline JavaScript and CSS
* Using srcset for responsive images
* Placing all assets on a cookie-free domain, preferably using a CDN.