Re: RequireJS timeout error

2024-09-17 Thread Christopher Dodunski (Tapestry)
Conclusion: The callback mechanism for modifying RequireJS's configuration on the go seems to have done the trick. I was able to disable RequireJS's default 7 second timeout. Not being entirely sure of when in the page's lifecycle the JS gets sent and the timeout clock starts ticking, I mad

Re: RequireJS timeout error

2024-09-17 Thread Christopher Dodunski (Tapestry)
Hi Ben, Thank you for those suggestions. In my case, RequireJS is pulling a remote JavaScript library as per the @Import annotation (below) on the pages’s class, so not a local jQuery module. The issue seems to arise when a user expands/refreshes a particular zone containing a large number o

Re: RequireJS timeout error

2024-09-17 Thread Ben Weidig
Hi Chris, as far as I know there are only two options to configure require.js, but both won't do it globally: - configure requirejs in your module/shim JS/Coffee code - use a ModuleConfigurationCallback We had timeout issues in the past, but only with a few scripts, like the Monaco editor, so we

RequireJS timeout error

2024-09-16 Thread Christopher Dodunski (Tapestry)
Hi team, Starting with version 5.4, Tapestry uses RequireJS modules internally, and provides support for using RequireJS modules in our own Tapestry applications. I'm wondering whether there is a mechanism in place for configuring RequireJS from my AppModule? On networks with slow internet