Browsers typically load all of the images on the page as soon as possible. This is called eager loading. Sometimes, it's best if we wait to load images until we need them. This is called lazy loading. Lazy loading is a great technique for speeding up page load times and decreasing page sizes.
I recently saw an amazing way to integrate Vue into a Rails project, and I wanted to share it here! It's a super easy method that makes it dead-simple to pass data from Rails views into Vue componnets. Not only that, but it only requires that you have a single pack entrypoint for all of your Vue components!
When you have a Ruby on Rails app, you need to run database migrations occasioanlly. One way to do this is to deploy the code to production and run the migration manually. In this post, I'll show you the script I wrote to start up an ECS task that will run the migration for me.