Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Front-end performance optimization points (notes)

Shulou Source: shulou.com Published: 2022-06-03 07:15:31 09月23日 Update

1. Reduce HTTP requests (merge requests).

2. Use CDN data acceleration (a local independent content distribution mechanism).

3. Use Expires headers reasonably to increase the cache effect.

4. Use dynamic or static compression technology, and compress the number of characters in text formats such as JS or HTML to reduce network consumption (use a single letter to define JS variables, remove extra spaces and format characters, or use JS compression tools to reduce JS length).

5. Store the style sheet CSS at the top of the page.

6. The JS script is stored at the bottom of the page.

7. Avoid CSS expressions.

8. Use external JavaScript and CSS.

9. Reduce DNS queries.

10. Simplify JavaScript to a certain extent.

Avoid redirecting.

12. Remove duplicate scripts.

13. Configure Etag tags.

Make AJAX cacheable.

Tags: Characters formatting caching scripts pages content dynamic variables letters tools bottom technology effects data text mechanisms tags styles spaces network Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MySQL MariaDB NVidia Apple