Log inSign up
Harry Roberts
48.6K posts
Image
user avatar
Harry Roberts
@csswizardry
🚀 Independent Web Performance Consultant • Speaker • Google Developer Expert, Web Performance • Accepting new clients • harry.is/for-hire
Leeds, England
csswizardry.com
Joined March 2009
454
Following
65.5K
Followers
  • Pinned
    user avatar
    Harry Roberts
    @csswizardry
    Apr 18, 2023
    📣 Today I am incredibly excited to launch SENTINEL, a new service designed to help companies stay on top of site-speed with minimal friction.
    Image
    Sentinel: Your Web-Performance Watchman – CSS Wizardry
    From csswizardry.com
    55K
  • user avatar
    Harry Roberts
    @csswizardry
    Aug 13, 2024
    Just went to a cafe for breakfast. Their menus are brass, laser-etched QR codes bonded to the tables. And they all point to…
    Screenshot of Chrome pointing to localhost, which cannot be found.
    944K
  • user avatar
    Harry Roberts
    @csswizardry
    Dec 21, 2019
    Without the comma, this sounds like a really sinister instruction to rouse some sort of bovine zombie army.
    Image
  • user avatar
    Harry Roberts
    @csswizardry
    Oct 19, 2019
    Want to view a single image on @imgur (literally its only job)? Good luck! You gotta successfully download (354KB) and run (1.21MB) of client-side React in order to get your image requested as resource 110 of 553. What should have been an IMG element became… this.
    Image
  • user avatar
    Harry Roberts
    @csswizardry
    Jun 2, 2025
    Five minutes before standup…
    $ git log --since='yesterday.midnight' --until='midnight' \
          --all --no-merges --oneline \
          --author=<your@email.com>
    196K
  • user avatar
    Harry Roberts
    @csswizardry
    May 15, 2020
    Developers: We don’t care about bundle size—users download it once and then it’s cached. Developers: We release 10 times a day.
  • user avatar
    Harry Roberts
    @csswizardry
    Feb 6, 2019
    Did you know you can link your @googleanalytics data up to your @caniuse account? No more manually cross-referencing or best-guessing browser support for your site—decide based on real data.
    Image
    00:00
  • user avatar
    Harry Roberts
    @csswizardry
    Mar 1, 2017
    The simplest way I’ve found (so far) to distill/explain `srcset` and `sizes`:
    Image
  • user avatar
    Harry Roberts
    @csswizardry
    Sep 8, 2019
    br + br { display: none; } Prevent CMS users abusing multiple line breaks for spacing.
    user avatar
    Šime Vidas (I’m on 🐘)
    @simevidas
    Sep 8, 2019
    😳 You can conditionally disable <br> line breaks via CSS media queries:
    Image
    00:00
  • user avatar
    Harry Roberts
    @csswizardry
    Jun 27, 2020
    🖼 If you’re building hero-style content with background images—maybe even through a CMS—you can hugely improve rendering times (LCP) with one additional line of HTML.
    Image
    Image
  • user avatar
    Harry Roberts
    @csswizardry
    Oct 27, 2023
    Some sensible defaults for your img elements:
    img {
  max-width: 100%;              /* [1] */ 
  height: auto;                 /* [1] */ 
  vertical-align: middle;       /* [2] */ 
  font-style: italic;           /* [3] */ 
  background-repeat: no-repeat; /* [4] */ 
  background-size: cover;       /* [4] */ 
  shape-margin: 0.75rem;        /* [5] */ 
}
    235K
  • user avatar
    Harry Roberts
    @csswizardry
    Feb 4, 2025
    Replying to @aidenybai
    Because 12pm–8am is 20 hours?!
    32K
  • user avatar
    Harry Roberts
    @csswizardry
    Feb 17, 2019
    Creates JIRA ticket: Responsive Nav Broken on Print.
    You’re unable to view this Post because this account owner limits who can view their Posts. Learn more
  • user avatar
    Harry Roberts
    @csswizardry
    Nov 5, 2017
    When I was becoming a front-end developer ≈10 years ago, knowing `border-radius: 5px;` made you a rockstar. I do not envy today’s beginners.

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
Advertisement
Advertisement