Upload page without loading music player

2

I'm doing a site once I have a music player in HTML5 , but every time I change the page the player loads again. In my search it looks like there are solutions either AJAX or IFRAME . IFRAME say it's not very recommended so I thought about doing it with AJAX, but since I do not know how to use AJAX, then I used goole, but all I found was refreshing a content without giving the page. What I want is otherwise the whole page can reload but the player does not, so keep playing the songs.

I found this post Ajax opening content without refresh did not answer the one I wanted

NOTE: The player is inside a php include, does it have a problem?

    
asked by anonymous 09.09.2015 / 22:59

2 answers

1

Oops, in your case you would have to do an ajax that would give the refresh on the page less in the player. One solution.

If you press F5 there is no way to escape, you could use something with lazyload for the player but then it would be the opposite, it would load the page and the player would be depending on a user action to load like clicking a button for example.

    
09.09.2015 / 23:54
0

It's a mixture of loading new content via Ajax and using an HTML5 API called History.

This similar question in SOen will give you a North to follow.

    
08.12.2016 / 15:02