Wow, thank you @gingah - that is a very interesting idea! I have just implemented it but stumbled upon a strange bug that affects the embedding of the Lightslider inline JS at the bottom of the <body>.
Have a look at www.toctoc-marseille.com/fr/ - the Lightslider is used within the salmon-colored area called "Temoignages" / Testimonials.
Now, when I have just freshly cleared Gravs cache in the backend (via "All" or just "Cache") and then visit the site, the Lightslider inline JS is correctly placed at the bottom of the <body>. However, once I do a forced reload in the browser, it disappears, and the page remains like this until I clear the cache once more and it appears again...
At first i thought it might have to do with Cloudflares caching - however, the same problem also surfaces on the french domain www.toctoc-marseille.fr/fr/, which is NOT namehosted via Cloudflare.
Apparently, ONLY the inline JS of Lightslider is affected by this. The inline blocks for Google Analytics and Featherl ight that also get embedded at the end of <body> do not have this problem...
It seems really bizarre and it's pretty much impossible to debug for any external person (due to the fact that you have to have backend access to clear the cache every once in a while), but I'd be grateful for any suggestions or hints.
-> UPDATE:
At first I thought it might have to do with some page level cache that comes in the way of Lightsliders random id generation...:
{% set unique_id = 'ls-' ~ random_string(10) %}
but that's not it :( So, i'm sorta lost on this. Do you happen to have any ideas what might cause this?