I am using panel.state.onload to make the initial load more responsive. This fails to load the main component with no python error message. However the browser console shows this error coming from the bokeh.js libraries
uncaught y: could not resolve type 'maximize1',
which could be due to a widget or a custom model not being registered before first usage
After some trial and error I discovered that if the python imports that are defined inside the function being called by the onload() are moved outside, it works!
I tried to import panel with all the extensions like tabulator, gridstack that I could think of however I could not resolve the above error until i moved the python imports to the initial script.
Is there a way to figure out which import is causing this issue?