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 access users are encountering an endless
spinning circle, even after images etc beneath have finished loading.
I'm able to replicate this issue by throttling my browser to 3G speed or
slower.
The error displayed in the browser's console:
core.js:452:339
RequireJS error: timeout: Load timeout for modules:
https://code.jquery.com/jquery-3.3.1.slim.min.js
http://requirejs.org/docs/errors.html#timeout, modules
https://code.jquery.com/jquery-3.3.1.slim.min.js,
https://www.[hidden].com/harbour/assets/stack/z5f50bb4/en/core.js, line
29, line 89
My thoughts are to disable RequireJS's timeout attribute. This could
possibly be achieved by embedding the below into the TML of the page
concerned, but using AppModule would be a cleaner solution.
<script>var requirejs = { waitSeconds: 0 }</script>
<script src="./path/to/require.js" data-main="main"></script>
Thank you in advance for any pointers.
Kind regards,
Chris.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org