Answer the question
In order to leave comments, you need to log in
How to make a block that doesn't reload?
How to make a block with a player so that it does not reload when switching to other pages?
Like player vk
Answer the question
In order to leave comments, you need to log in
With reloading the pages, the answer is no way.
For non-stop operation of the player, you will independently rebuild the content of the pages using AJAX and adding new entries to the History.
This will entail a mechanism for tracking the address bar on the client with a choice of scripts, the server issuing the code of the whole page or only the content (perhaps not all, but only parts, depending on the parameters passed).
If you are able to competently implement this - wellcome. If you do not understand what is at stake, then we return to the first phrase.
Switch the site to ajax + history api
Well, or at least wrap the entire site in an iframe, and leave the block in the main window.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question