I have been messing about trying to get a different look to other sites and have built a Facebook style topic modal. It seems to load quicker for me and seems to be more fluent on desktop.
Very cool! have you tested it in topics with 20+ replies? that’s when we load more “pages” of posts on scroll and in my experience is one of the biggest complications with this sort of alternate view
Yeah thats the next thing i need to look into but i have been pondering over this, does it matter? That’s the same as Facebook behaves, the direct link goes to the actual post, if clicked while browsing modal opens.
Yes, because the modal loads the normal Discourse topic application inside an iframe rather than rendering a custom copy of the topic. The iframe establishes its own MessageBus connection and Discourse continues handling the post stream normally, including loading older posts and receiving newly published posts.
The parent page also remains active behind it, so technically there are two Discourse instances and two MessageBus connections while the modal is open. That works, although it is slightly heavier than a fully native implementation. Closing the modal removes the iframe and its connection.