L
L
LazyFM2019-03-12 01:34:33
Audio
LazyFM, 2019-03-12 01:34:33

How to make a “frozen” footer that does not reload when you navigate through the pages of the site?

Greetings!
I am making a website for my internet radio station radiobd.ru. The player stuffed it into the Sticky Footer plugin, and when the site was a one-page longread, it worked. But now it was necessary to make internal pages, and when you go to them, the broadcast is interrupted, because. the page is completely reloaded. I have seen other radio stations (silver.ru, gorodkudrovo.ru) page transitions without interrupting the broadcast, but I don’t know how to do it, except to use a banal frameset with all the ensuing problems. The site is sculpted on Wordpress / Elementor.
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Orkhan Hasanli, 2019-03-12
@azerphoenix

It is necessary to remake the site into a single page application (React Native, VueJS and other js frameworks).
example - https://premium.wpmudev.org/blog/creating-a-hybrid...

L
ljutaev, 2019-03-12
@ljutaev

https://www.javascripting.com/view/smoothstate-js

A
Alex, 2019-03-12
@Kozack

The easiest way is to open a new window, directly with the player, which will work in the background.
Otherwise, you need to redesign the site.
In extremely crutch form

  1. You can attach a handler to a click on an internal link.
  2. Then fetch the link address and get the html.
  3. Parse it and find the container you need with the content.
  4. Replace content on current page with loaded

N
Nikita Gennadich, 2019-03-26
@Psychosynthesis

The most banal way is really to do all this through an iframe. As for me, not such a bad option, there are less minuses than pluses.
In general, it would be really possible to make a template on something in the spirit of AngularJS and simply load new data, redrawing the template if necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question