Discourse component </head> section scripts are not loading on the browser sometimes after upgrading to discourse 2.8.0.beta7 & beta8

AI-generated summary

The user narayanan is experiencing issues with custom JavaScript files in the </head> section not loading on the browser after upgrading to Discourse 2.8.0.beta7 and beta8. The issue occurs:

  • Sometimes on the topic page when the user is logged out, even after hard reloading
  • Occasionally when the user logs in through SSO, the scripts fail to load
  • Header section scripts load without issues in these cases

The user has verified the loaded scripts in the browser source and is unsure if the issue is caused by the upgraded version or if there are admin settings that need to be adjusted.

While customizing the discourse site (before discourse 2.7.0), i have placed some custom java scripts in
</head> section of component. Also, triggering those scripts on discourse events like decorateWidget, onAppEvent & onPageChange. In the earlier version of discourse, all things are goes well.

Currently we have upgraded the discourse version to 2.8.0.beta8. Once we upgraded to latest version, we are facing some issues mentioned below,

  • On the topic page, our </head> section custom scripts are not loaded sometimes in browser even hard loaded the page when user logged out.

  • On the topic page, sometime </head> section scripts loaded fine when user logged out. Once logged in through SSO, the section failed to load on the page browser sometimes.

  • When the </head> sections are failed to load on the page, Header section scripts are loading every time on the browser without any issue.

We are facing the above issue after upgrading the discourse version into 2.8.0.beta7 & beta8.

I have verified the loaded scripts file from browser source like below,

So, is the issues are really coming with the upgraded version 2.8.0.beta7 & beta8 (or) need to do anything related to this on admin settings ?

1 Like