
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
github.com/gildesmarais/jekyll-loading-lazy
This plugin adds loading="lazy"
to all img
and iframe
tags on
your Jekyll site. No configuration needed.
If a loading
attribute is already present nothing is changed.
loading="lazy"
causes images and iframes to load lazily without any JavaScript.
Browser support is growing.
If a browser does not support the loading
attribute, it will directly
(read: blockingly) load the resource.
If you like it, be awesome and buy me a coffee ☕️. Thank you!
Add the following to your site's Gemfile
:
gem 'jekyll-loading-lazy'
add the following to your site's _config.yml
:
plugins:
- jekyll-loading-lazy
Note: if jekyll --version
is less than 3.5
use:
gems:
- jekyll-loading-lazy
In your terminal, execute:
bundle
(re)start your Jekyll server with:
jekyll serve
That's basically all there is.
In case you want to eager load some images/iframes, add loading="eager"
to their tags.
git commit -m 'Add cool feature'
)rake
Thanks to @keithmifsud's
jekyll-target-blank
whereon this Jekyll plugin largely bases.
FAQs
Unknown package
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
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.