Hi I have an interactive map that is slowing my website down (10 sec to load page) due to a lot of network requests to vimeo happening at the beginning of the file.
Is it possible to delay the loading of the iframe that contains hype until after the page loads? or hype itself?
The only thing I can think of is a JS timer function that delays the iframe loading for a short time - any help greatly appreciated.
Please note that we can only address JavaScript questions and issues in the context of Tumult Hype, so please attach a Hype document so others can dig into what you have so far.
I used the data-vimeo-defer option in each Vimeo iframe (18 in total x3 layouts) This had the effect of reducing the network calls to/from vimeo from +500 down to less than 50 drastically reducing the page load time and improving performance.
<iframe loading="lazy" data-vimeo-defer src="https://player.vimeo.com/video/148751763?badge=0&autopause=0&player_id=0&app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen title="You'll never guess what this video is!" ></iframe>
Note: For this to work the vimeo embed code must be inside a HTML widget in Hype rather than a rectangle object.