Hi everyone — I’m facing three issues in our React Client app, PDF generation and would like some clarification: Material Icons delay after login When I sign in to the Mendix production environment, the Material Icons take ~3 seconds to load. During this time, the icons on my landing page appear late, causing a brief flash of missing UI. Is there a recommended way in React Client or Mendix deployment settings to optimize or preload these icons so they load instantly? 2. JS files loading only on first page visit When I open any page for the first time after a refresh, several JavaScript chunks are downloaded in the Network tab. On subsequent navigations, these files are not downloaded again. Is this expected behavior for the Mendix React Client (i.e., browser caching )? If so, should we rely on this as the intended performance pattern? The concern is that the initial navigation to each page takes longer because these chunks must load the first time. 3. We use the Mendix recommended PDF document generation (HTML → PDF). Generating a PDF with no dynamic data still takes >10 seconds. The older Document Template approach (deprecated) appeared significantly faster. Is there a known cause or recommended configuration to speed up the current generator?Any guidance or official recommendation on optimizing these behaviors would be really helpful. Thanks!
asked
Rishi Sundar
1 answers
0
That's quite a list. I hope below will be helpful.
Assuming font/material icons are self hosted, if yes and still slow then hint browser to load earlier with below:
JS chunk is standard behavior or react. Avoid huge widgets that pull big dependencies (charts, maps, heavy libs) on initial pages. Use lazy loading (fetch using nanoflow or event/timer component)
For PDF, avoid dynamic external calls. Or put this in scheduler or events to save it before hand. 3–8s for a reasonably complex PDF in an enterprise app is unfortunately normal