Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

What can we do to improve a website's performance? #5

Open
cheatsheet1999 opened this issue Sep 4, 2021 · 0 comments
Open

What can we do to improve a website's performance? #5

cheatsheet1999 opened this issue Sep 4, 2021 · 0 comments

Comments

@cheatsheet1999
Copy link
Owner

In the perspective of content......

  • Minimize HTTP requests, such as CSS sprite, inline image, and files combination.
  • Minimize DOM elements.

In the aspect of server and Cookie......

  • Utilize CDN, config ETag, and compress components using Gzip.
  • Reduce the size of cookie

In terms of CSS......

  • Avoid CSS expressions
  • Put the stylesheet on top of the file
  • Using <link> but not @import

Ok...What can we do on Javascript......

  • Put Javascript on the bottom of the HTML file
  • Import JS file from outside
  • Minimize DOM operation
  • A lot more we can do on Javascript, but that will be another HUGE topic then.
kyxg added a commit to kyxg/FrontEndCollection that referenced this issue Jan 4, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant