Skip to Main Content

Load timeout for modules

When using OracleJET to produce charts on a (slow) Apex page, you may run into this error (in the browser console):
This is caused by the default "module load" timeout of 7 seconds of RequireJS. If the queries of your charts are slower than that, you will get this error, and the charts will not show on the page.

The solution is quite simple, just set the timeout to something bigger, but it took me way too long to find out how to implement it on an Apex page...
On the Apex page, under "JavaScript - Execute when Page Loads", add this line: Of course 100 is just an example. If you set waitSeconds to 0 then it will wait forever - probably not a good idea.