本站的主題是商業,創業,美食,葡萄酒,閱讀,網路科技。
這是我的 FB粉專 以及 IG,我比較常使用 Threads,歡迎大家追蹤互動~
Yahoo Developer 關於加速網站的好文
https://developer.yahoo.com/performance/rules.html
1. Reduce http requests: using CSS sprites is a good example.
2. Static cache expiration: set the expiration to never or long time.
3. Gzip components.
4. Put stylesheets at the top: for progressive rendering.
5. Put scripts at the bottom: avoid downloading 2 or more components in parallel (don't let downloading javascript block downloading html and assets.)
6. Make JavaScript and CSS external: then they can be cached in the client. But note the JS with template language still stays in html.
7. Minify JavaScript and CSS.
8. Remove duplicate scripts: review if your html contains duplicate scripts.
9. Make Ajax cacheable: need a timestamp to judge if really need to submit a request.
本站的主題是商業,創業,美食,葡萄酒,閱讀,網路科技。