I have added a vidyard video on a hubspot landing page in the rich text editor. I have used vidyard's default embed code for this. But while loadinng this page specifially in chrome browser video iframe is being generated very late. On load, Hubspot default video module is trying to adjust the height/width of the iframe which is not loaded yet hence throwing js error. It seems that via settings csp headers this could be resolved but I am not getting options to set these in my Hubspot dashboard. I am sharing url of the page and some screenshots which will help to under this post better. Kindly review and respond back if you guys see any workaround for this!
I have added a vidyard video on a hubspot landing page in the rich text editor. I have used vidyard's default embed code for this. But while loadinng this page specifially in chrome browser video iframe is being generated very late. On load, Hubspot default video module is trying to adjust the height/width of the iframe which is not loaded yet hence throwing js error. It seems that via settings csp headers this could be resolved but I am not getting options to set these in my Hubspot dashboard. I am sharing url of the page and some screenshots which will help to under this post better. Kindly review and respond back if you guys see any workaround for this!
It is likely due to the HubSpot video module trying to adjust the iframe dimensions before it has fully loaded. This results in a JavaScript error as the iframe is not yet present. One potential solution is to delay the adjustments using a custom script that ensures the iframe is fully loaded before applying any modifications.
Another approach might involve optimizing the Content Security Policy (CSP) headers to allow the iframe to load more smoothly, though HubSpot does not provide direct options for CSP settings in the dashboard. Wrapping the Vidyard embed code in a container and using JavaScript to manage the iframe loading behavior could help resolve the issue in my opion.
Thank you for your reply on this. We are already working on custom solutions for this but as you know Hubspot core module files are not editable so struggling a bit. Hope Hubspotprovide direct options for CSP settings in the dashboard.
We tried a solution by closing video module from Hubspot and making chanegs to it, JS error for video module height/width adjust gone away but page is still loading slow as script from rumiview.com is blocking it. Any idea to remove/block this script?