I recently redesigned my website and now I have many lines of code that are not being used anymore when the website loads. Its really tedious to go through all the lines manually, is there any tool for this? Thanks!
If you want to remove unused CSS entirely, you can use a tool such as PurifyCSS to find out how much CSS file size can be reduced. Once you get the CSS code you should eliminate, you have to remove it manually from the page. If you want to deep dive into a manual solution, you can read the CSS-tricks in-depth article.
Press "Ctrl-F" and type "style." The window searches the code for that word. If you see a style tag in an HTML document, that document uses CSS. The code between the opening <style> tag and the closing </style> tag contains the CSS.
Looks like http://unused-css.com/ will check for unused CSS on your site.
Unused JS will be much tougher.
Found these for fixing html,
and these for fixing css
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With