Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...
TLDR Using .includes or .eager_load with 1-n associations is dangerous. Always use .preload instead. Consider the following ActiveRecord...
Chromedriver (or selenium-webdriver?) will not reliably scroll elements into view before clicking them, and actually not click the element...
Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...
Capybara allows you to filter elements that are focused. page.find(:fillable_field, focused: true) # Filtering only fillable inputs for performance...
Note: You won't need this for single lines of text. In this case it is better to just use...
Sometimes you'll find yourself with a set of tasks that require similar code for different models. For example, if...
So you have a heading that is just barely wider than the container it should fit into, and it wraps...
How you order elements in the can have an effect on the (perceived) performance of the page. This script helps...
The rubocop binary has a few interesting flags: rubocop (using the --parallel default ) scans the current repository for linting issues...
Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...
Maintaining larger projects makes it more difficult to balance refactoring and upgrade tasks according to its actual value. Consider to...
If you need a sample video with certain properties for a test you can create one using ffmpeg.
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
To retrieve only unique combinations of the selected attributes: You can omit rows, where all selected columns are equal with...
Variable fonts are popular for two reasons: they expand design possibilities and improve website performance. While the former statement is...
tl;dr The Chrome DevTools are a neat collection of tools for the daily work as a web developer. If...
Case studies and experiments demonstrating the impact of web performance optimization (WPO) on user experience and business metrics.
Recently we detected a memory leak in one of our applications. Hunting it down, we found that the memory leak...
When paginating records, we usually need to know the number of total records in order to render pagination links. Popular...
Redis.current will be removed without replacement in redis-rb 5.0. Version 4.6.0 adds deprecation warnings for Redis.current and Redis.current=: `Redis.current...
Event delegation is a pattern where a container element has a single event listener that handles events for all descendants...
The Node Version Manager allows installing multiple NodeJS versions and switching between them. By default, it does not automatically switch...
Table of content for the linked article: 1. The `loading=lazy` attribute 2. Email, call, and SMS links