Force browser to refresh on new page / hashchange
-
Hey guys,
is there any way to always force the browser to refresh on opening a new page/project page or hash change?The reason I'm asking: I am using a customized navigation bar whose content changes according to each page and scroll position. If I don't refresh every page, the code isn't working; partly due to unloaded elements and – I guess – partly due to the cache.
So this is the website:
http://lukasbazle.de/Please notice that you always have to reload the page to display the content correctly.
As you'll probably see I tried a lot of different ways in the custom head content to fix this, sorry for the mess...
Thanks in advance,
Lukas -
Dear @Lukas-Bazle
there is no official way to refresh the page.
There might be one hack. Use a shortcode on the page. Maybe on a footer page which gets called everywhere.
LayTheme then forces a reload.But also have a closer look here:
http://laytheme.com/documentation.html#custom-javascript
Normally you can also start a Javascript code when the page changes.Hope I could help!
Best!
marius
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login