Browsers blocks abusable JavaScript API calls until the user has interacted with the document. Examples would be opening new tab...
In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...
capybara-lockstep can help you with flaky end-to-end tests: This Ruby gem synchronizes Capybara commands with client-side...
json is part of the standard library of Ruby and deals with JSON, obviously. As you know, JSON is the...
If your project depends on an old version of ImageMagick that you can no longer install in your system, you...
When you repeat a subpattern with a *, + or {...} operator, you may choose between greedy, lazy and possessive modes. Switching modes...
Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...
In my experience, the most common sources of memory leaks are APIs like these: addEventListener. This is the most common...
TinyMCE is a WYSIWYG editor which is quite customizable. Add a custom button to the tinyMCE toolbar and tell tinyMCE...
When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...
Feature Queries (Edge 12+): Similar to @media queries, @supports blocks can be scoped to browsers that support a given declaration...
The linked article compares two approaches for writing CSS: A component library (like BEM) Utility classes (like Tailwind)
Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...
Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...
CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...
Chrome has a built-in utility to check performance and accessibility (and more) of your web app: Lighthouse.
We structure our CSS using the BEM pattern. Our naming convention for blocks, elements and modifiers has evolved over the...
Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...
If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...
CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...
We're pleased to announce Ruby 3’s new language for type signatures, RBS. One of the long-stated goals...
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
Here is an ES5 object literal with two string properties and a function property: let user = { firstName: 'Max', lastName: 'Muster...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...