Changes to Podcast code

  • Issue description:

It has been about a year since I added a new podcast channel to our home page. I notice that the code has changed:

Old Code:

<script src="https://apps.elfsight.com/p/platform.js" defer></script>
<div class="elfsight-app-GUID goes here"></div>

New Code:

<script src="https://static.elfsight.com/platform/platform.js" data-use-service-core defer></script>
<div class="elfsight-app-GUID goes here" data-elfsight-app-lazy></div>

In the script tag, “defer” has been replaced by “data-use-service-core defer” and in the div tag, there is now “data-elfsight-app-lazy”.

I have three seasons of podcasts with the old code and one season (Season 4) with the new code. What is the difference? Should I update seasons 1 to 3?

  • Link to the page with the widget in question:

The Royal Canadian Regiment Museum > Home (thercrmuseum.ca)

1 Like

Hi there @Stephen4 :wave:

Yes, you are absolutely tight! With our recent transition to the new dashboard, there have been some changes in the installation codes for widgets. This is why you now see “data-use-service-core defer” instead of just “defer” and “data-elfsight-app-lazy” within the div tag.

For widgets that were created before the transition, they’ve retained the previous code format.
Rest assured, there is no much difference between these 2 versions.

Widgets using the old code will load as soon as the page loads, whereas those with the new code will only load when a visitor interacts with the page’s content or scrolls down to the widget’s location.

If you’d like to update the old code, you can manually add the necessary attributes.

Please let me know if this explains things or if you have any further questions :slightly_smiling_face: