Tasklist plugin refresh issue

We have developed a custom task plugin based on :

having as plugin point : tasklist.task.detail.
The task plugin behaves as expected, however when toggling between different task instances through the task list results without changing the tasklist plugin tab, the content is not refreshed. The content is refreshed if manually toggle between different tabs, e.g. going back and forth from Form tab to Additional Details tab. A similar issue has been described below:

Is there same workaround on this, when implementing tasklist plugins through customScripts?