The user website on Document360 can now work as a Single Page Application (SPA) to improve the user experience and enhance performance. Check out this link to understand what is a SPA and how it works.

This SPA may affect custom codes written by the users on the likes of page refresh events.
Here is the list of places where the possible usage of Custom Javascripts can be injected within the Document360 portal.

  • Custom Javascript (Settings → Knowledge Base Site → Custom CSS & JavaScript)
  • Custom HTML Integrations with Javascript files embedded. (Settings → Knowledge Base Site → Integrations → Custom HTML)

Recommended workaround

  • Customers are recommended not to use the Javascript codes which are depending on page refresh events.

  • Since SPA will refresh only the article content, not the complete window - We recommend customers to subscribe to the article content refresh event instead of page refresh events.

The below code will help you to subscribe to the articleload event.

window.addEventListener('articleload', function() {
  //your page refresh code here
});