![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
middleman-async-image
Advanced tools
Load your images asynchronously with Middleman : like Medium.
Because loading images on poor connections is really ugly. Medium as a great image loader so I develop a Gem to make it same as Middleman.
Check the SEO markdown file! (ut everithing is well)
This gem detect when you want to load an image asynchronously (when you're using the helper). It going to duplicate it, with really strong compression and scale in a separate folder. Then, a JS function will load the poor quality image firstly, and the HQ image asynchronously. When the great image will be loaded, the other image will disappear.
All you need to do, is using the following helper:
image_async_tag(path, options)
it works exactly as the middleman image_tag default helper.
Middleman Async Image need middleman-sprockets. Go to your GemFile and set the following line wherever you want:
gem "middleman-sprockets"
then, set activate :sprockets
in your config.rb.
You can set the image-dir of your choice (follow the Middleman assets directories configuration).
Simple configuration: just add gem 'middleman-async-image'
to your Gemfile and activate :async_image
to your config.rb. If will work whatever your images dir.
Then, go to your main CSS file and set //= require async-image
. Do the same in your JS application'file.
By default, compressed images are stored in the compress dir in your image folder. If you want to name this dir differently : add the following configuration to your config.rb:
activate :async_image do |i|
i.compress_image_path = "THE_DIRECTORY_NAME_OF_YOUR_CHOISE"
end
By default again, the compression level is low (15). If you want to use a different one, you can configure it as the following:
activate :async_image do |i|
i.quality = 10
end
You can else set the scale as you want, using i.scale
but we do not recommand to use this parameter if you don't know how to use it. By default it's by .3.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)See LICENSE, which applies to everything in this repository.
FAQs
Unknown package
We found that middleman-async-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.