Dynamic html component not showing for only some viewers

Hi,

I have a dynamic page where I pull a url from the database to change a chart in a html component
E.g.

let itemUrl = $w ( ‘#dynamicDataset’ ). getCurrentItem (). urlreference
$w ( ‘html1’ ). src = itemUrl

It works for all my colleagues and on multiple browsers.

However, one of my clients said he is not getting anything. Either blank if there is nothing in the html component to start or a base chart I put in for html component sizing. This suggests the html components are loading but it is something to do with pushing the src that is not working for him.

I cannot work what is going wrong for him as I cant recreate the problem on any of my computers.

Any thoughts?

Oh boy, that brings back old memories. I believe you are running into the “timing” problem: you are sending data to the html-component (the src) when the component itself is not fully loaded yet, so it is ignored. SOmetimes this happens.
Look at my, by now very bearded solution here:https://girizano.wixsite.com/codecorner/post/html-component-not-running-in-publish-mode-google-sheets-example

Hi Giri,

Thanks for the response. I suspect it must be a timing issue. I actually came across your suggestion the other day.

The client came back yesterday and said none of his colleagues have the problem and the page now works for him in IE or edge. However, his Chrome still has the issue.