Mattermost slowness investigation

Is there a way to add javascript to the of mattermost? We need to implement our APM/RUM into the application.

Hi,

you can modify /opt/mattermost/client/root.html to your needs; this is what’s being served at the top of each page and also contains the HTML head, so you should be able to inject your custom javascript there.

Best,
Alex

Thanks. I was able to get the information that I was looking for regarding the slowness of Mattermost. I had to disable the Content-Security-Policy to get RUM to work. Here is my findings:

and if we dig further in rudderlabs: