What are the conditions under which a process in an HTML element is automatically re-executed?

We are retrieving values from two DB tables in an HTML element.
Let these DB tables be A and B.
When A was updated from the workflow, the console process in the HTML element was automatically re-executed.
However, when I update the value of B, the console process in the HTML element is not automatically re-executed.

What conditions must be met for the processing in the HTML element to be automatically re-executed?

I apologize for not being able to provide more information as this is the system we use for our business.