sgom.es
  • Everything you never wanted to know about side effects

    (2020-06-15)

    Side effects can have a large influence on bundle sizes with bundlers like `webpack`.

    Tags: 
    side-effects bundling tree-shaking
    Full article
  • Supporting old browsers without hurting everyone

    (2019-03-06)

    Supporting old browsers doesn’t necessarily mean sending loads of JS to everyone.

    Tags: 
    bundling performance
    Full article
  • So you want to use Redux (pt 2) — reducers and scale

    (2019-01-15)

    After looking at potential performance issues with selectors in Redux and React apps, this time we'll look at reducers and scaling issues.

    Tags: 
    redux react performance memoization
    Full article
  • So you want to use Redux (pt 1) — selectors

    (2018-12-06)

    Redux is a clever and useful state management library, but using it comes with some performance gotchas. We'll start by looking at selectors.

    Tags: 
    redux react performance memoization
    Full article
  • Multiple routes, bundling and lazy-loading with webpack

    (2018-01-18)

    Splitting your JavaScript bundles per route sounds difficult, but webpack makes it pretty easy.

    Tags: 
    modules javascript bundling webpack
    Full article
  • Browser module loading - can we stop bundling yet?

    (2017-06-30)

    Browsers are now getting to a point where we can stop bundling JavaScript altogether. But should we?

    Tags: 
    modules javascript bundling
    Full article
  • Material Money - a sample PWA

    (2017-04-24)

    Over the past while, I’ve been working on a sample Progressive Web App with Mustafa. We learned a lot! This post is an overview of what I learned as a developer, and what I’d like to explore further.

    Tags: 
    pwa release
    Full article
  • CSS Custom Properties as your API

    (2017-02-17)

    Now that you’re comfortable with custom properties and know how to use them to improve readability in your CSS, let’s look at how you can use them to enhance modularity and reusability in your code.

    Tags: 
    css custom-properties abstraction
    Full article
  • Bridging CSS and JS with Custom Properties

    (2017-02-10)

    CSS Custom Properties have many interesting uses beyond serving as a simple storage and retrieval mechanism for CSS values. In this article, we will explore the best practices around using them as a bridge between CSS and JavaScript.

    Tags: 
    css custom-properties js abstraction
    Full article
  • More Readable CSS with CSS Custom Properties

    (2017-02-03)

    Now that you know how CSS Custom Properties work, you can start thinking about using them to improve readability in your CSS and making future maintenance easier.

    Tags: 
    css custom-properties readability DRY
    Full article
  • CSS Custom Properties - The Basics

    (2017-01-27)

    So you’ve heard about CSS Custom Properties (also known as CSS Variables) and you might have an idea of what they are. You’re not quite clear on the specifics or browser support, you haven’t heard anything about best practices, and you don’t know how they’re better than variables in Sass or Less, though. Well, read on!

    Tags: 
    css custom-properties
    Full article
  • Using Sass to automatically pick text colors

    (2016-12-21)

    Theming is always a challenge, particularly when you’re working on a library, rather than a standalone website. One example of an interesting issue that you’ll come across very frequently is choosing a text color that ensures readability and accessibility.

    Tags: 
    sass theming
    Full article
Author's avatar

Hey there!

I’m Sérgio, and I work with Web frontend code. Sometimes I write about it here.

Articles under Creative Commons 4.0 Attribution, code under Apache 2.0 (unless otherwise indicated).