Jump to content

Profiles reload when first opened

Recommended Posts

To reproduce:

  • Click https://invisioncommunity.com/profile/536475-colonel_mortis/ (note that this will not occur again if you refresh the page or use the browser back/forwards buttons - you need to actually click the link to trigger it)
  • Observe that the page shows up for a moment, then changes to a loading spinner, before finally loading again a few seconds later. All of the page data was reloaded from the server in the process.

This can be fairly jarring, especially for users on slower connections.

This is because ips.profile.main.js calls History.replaceState from setup. setup is called from initialize after the statechange event handler has already been bound. I'm not sure why you're calling History.replaceState there, but it seems like it should be safe to reorder initialize so you call setup before adding the statechange event handler.

Link to comment
Share on other sites

  • 3 months later...
On 4/20/2022 at 11:49 AM, Stuart Silvester said:

I have opened an internal issue for this so one of our front-end developers can look into it.


On 4/18/2022 at 4:27 AM, Marc Stridgen said:

I have tagged our developers on this so they can review what you are referring to on the loading of that item

any update on this?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...