Autoplay does not trigger on first load of my web page

Hello everybody,

I’m facing a strange issue with a lottie animation I have added on the homepage of a website.

I’ve set the animation to auto play, but when a user see the animation for the first time, the animation does not start.
When he comes back to the page where the animation is included, the animation is playing as expected.

What do I need to add to “force” the auto play setting?

Best regards
Simon

used autoplay true like this which i am giving you code for website.

var animation = bodymovin.loadAnimation({
container:document.getElementById(“example.”),
renderer:‘svg’,
loop: true,
autoplay:true,
path:‘example.json’
});