Spend 30 years working with html/css/javascript/VBA/Google etc., 12 years working with AppInventor, and even then you will only have the tip of the iceberg. The internet is your friend when it comes to finding answers.
running a javascript in a webviewer will work whether the webviewer is visible or not.
Can't really help with your blocks, other than to observe that they look very confused, and it is not obvious as to what you are trying to achieve: you use Kodular, a webviewer and customwebview in your blocks, plus procedures that you do not show.
I am confused, if when my clock do, the evaluate js not working,
but for the MRP Label it is working, I experiment it by placing a notifier in the block, the MRP label clock and blocks are working But I can't be able to get the value of PriceLabel to the label.
I do Evaluate webString to get image from the website in the webview.
In the same webview i ran another JS which was for MRP (span.compare)
Same webview ran another JS to get the Discounted amount Price(span.current)
In all JS evaluation i put some seconds of time to not get bulky the server.
The first clock to get images is working fine and second to get MRP(span.compare) is also working fine but the third clock for Price(span.current) is not starting infact same starting as after the image got and MRP clock.
How to distinguish between them?(i know about this.)
But problem solving my mind ask me to solve this bug and improve it as it is with one by one as this help me to execute multiple JS in one webview and also helps me to idetify each Execution by Javascript variable. This is for my learning approach