Open leeoniya opened 13 hours ago
btw, this is what we're seeing when loading up an empty dashboard on ops
instance, to give you an idea of potential impact on overall load times:
https://ops.grafana-ops.net/d/edwfkqzvndrlse/empty?orgId=1&from=now-6h&to=now&timezone=utc
Hello! 👋
Whilst auditing Grafana javascript payloads we've noticed that your Grafana app plugin is not taking advantage of code splitting. This is resulting it a large amount of Javascript being preloaded before the Grafana application can render anything. We're aware applications grow over time and generally we're not great at keeping on top of this but we would really appreciate it if you could put some time into code splitting this app plugin to help us reduce the amount of javascript code we're loading up front.
The following are worth considering when taking on this task:
Below are two examples of Grafana plugins that have recently been code split or are in the process of being code split. The motions are generally the same for all app plugins as the module.js revolves mostly around the AppPlugin class. These should help give you a better understanding of what's involved:
Further information: