Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cleaning CSS

Featured Replies

Chrome developer tools will also tell you about any unused CSS and JS in your code. The problem I've found with both, is that it's extremely difficult to view across an entire site or application, especially if the app requires authentication. Even if it's possible to provide a sitemap, it's insanely slow to process. With purifycss, I've unknowably removed important CSS before that wasn't on the public-facing site, and that's down to the tool not giving me the full picture of what's going on. I agree with Rob, stick to writing CSS as clean as you can, don't go nuts on filesize, don't use a framework like Bootstrap, and you should be good to go. Something like decent image compression, and enabling GZIP on your server, will have a bigger overall benefit than taking off 10kb of CSS.

will have a bigger overall benefit than taking off 10kb of CSS.

Definitely this. I see so many people prematurely optimising things rather than targeting the actual bottlenecks.

  • Author

It's less about speed improvements - my CSS is not complex enough to warrant that - rather it's about my trial and error design process leaving lots of styles I ended up not needing together with a desire for tidiness.

 

In other words, having built a CSS through trial and error I want to clear out all the stuff i decided not to use so I can review any bits I've magpied from stack overflow or similar to understand them and rebuild more tidily for future projects.

You'll just have to be diligent about removing stuff and keeping things clean. Using something like Sass makes this much easier as you can use modules then.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.