Skip to content
Discussion options

You must be logged in to vote

I think I have a solution for my particular scenario.

I invite any comments, criticism or corrections to this approach.

To solve CLS I'm adding the width and height attribute values by using Cloudinary's fl_getinfo "transformation", which is an odd thing to call it as it just returns txt data.

I switched from using a macro to the seemingly more appropriate shortcode, which I call from my blog markdown files with named parameters. In the shortcode definition, I use addNunjucksAsyncShortcode, as it is making a remote request. Then with eleventy's eleventy-fetch plugin, the results are cached so during development I'm not running up transformation tallies at Cloudinary ... anything but the …

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
8 replies
@cfjedimaster
Comment options

@danbraun
Comment options

@cfjedimaster
Comment options

@danbraun
Comment options

@cfjedimaster
Comment options

Comment options

You must be logged in to vote
6 replies
@danbraun
Comment options

@cfjedimaster
Comment options

@danbraun
Comment options

@cfjedimaster
Comment options

@danbraun
Comment options

Answer selected by danbraun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants