DataviewJs - Code reuse: common place for scripts

I have looong DataviewJs Codeblocks with functions like

  • function printTable(todolist, name, captionLevel=2) {
  • function AddMyPropertiesToDataviewPageObject(page) {
  • function GetAllContainedProjectTags(pages) {

to make my own calculations, filters and compilations of my tasks. These functions are called on every run and create my task tables. So the javascript functions have to be called on every task update.