Well you’ll need to change the whole approach, instead of querying the Instagram API directly you can have some sort of process that queries the API in intervals (cron maybe) and populates an ES index with the data, then you query your ES index instead.
Glad that was helpful, to be fair the only slow API we use is Magento’s so that’s the only one we’ve had to improve 😅
Everything else is pretty fast out of the box, we normally use WP for CMS, Algolia for Search/Filters and another service for shipping calculations and they’re all good as they are.
Hey Patrick, glad you like the article!
In our experience the main benefits from UPWARD have been:
Well you wouldn’t be able to do it without knowing the image size but I’m wondering in what use case you don’t know the image size?
I wouldn’t do this on the frontend side, it’s probably easier to get the original image width/height and send it to the frontend in one go with the
Probably not using CSS variables alone but using the new
contrast function in CSS4 Colors you could do something like:
color: color(var( — backgroundColor) contrast(50%));