Skip to content

Instantly share code, notes, and snippets.

@aristath
Last active March 8, 2021 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aristath/af8abacef11aec7d467404ba0222e01c to your computer and use it in GitHub Desktop.
Save aristath/af8abacef11aec7d467404ba0222e01c to your computer and use it in GitHub Desktop.

PHP

  • Advocate for bumping the minimum PHP version: recent PHP versions are faster & lighter, so less CPU cycles and less energy consumption
  • PHP: Write more efficient code (for example use caches instead of repetative nested loops)

JS

  • Advocate for vanilla JS vs jQuery: Faster client-side and fewer assets to download
  • Advocate for service-workers in core
  • Find a way to remove the emojis script, or at least only load it when needed. It's 14kb on each page-load on 40% of the web, it's insane!

CSS

  • Advocate for more efficient styles
  • Advocate for CSS over JS where possible
  • Rethink inline styles for small assets
  • Advocate dropping IE11 support. Supporting IE11 adds lots of styles and JS and prevents us from following more modern practices.
  • Advocate for modern CSS: grid vs flexbox, css-variables

Assets

  • Advocate for properly sized images
  • Advocate for SVG over jpg/png etc

Design

  • Prefer system fonts over webfonts. If webfonts are necessary prefer local fonts over webfonts
  • Prefer dark color schemes over light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment