-
Notifications
You must be signed in to change notification settings - Fork 47.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused JavaScript and CSS . #1046
Comments
Removing unused JavaScript and CSS can optimize your website by reducing page load times and improving performance. Here's a detailed guide to do it effectively:
npm install @fullhuman/postcss-purgecss --save-dev module.exports = { b. Lazy Load CSS: let link = document.createElement('link'); npm install purify-css |
This is a common issue , that affect the whole performance in desktop check so ,you can understand where the unused css and javascript uses in the code. thanks
How to detect unused CSS
The Coverage tab of Chrome DevTools can help you discover critical and uncritical CSS. See View used and unused CSS with the Coverage tab.
Chrome DevTools: Coverage tab
The text was updated successfully, but these errors were encountered: