Refreshing WebPage every Minute without Content Reloading

Posted in: Newsmag
Post count: 3

I am Looking to refresh my webpage every 1 minute without reloading the content.
I am using the code below to refresh the content. I have placed the code in teh footer of the website. It does refresh the page but the images don’t load if the add the code is added. I tried the code in different themes they seem to work fine. Only when i’m using this particular theme, the images fail to load.

<script type=’text/javascript’ src=’http://www.thesimpletruth.in/wp-content/themes/Newsmag/js/jquery.js?ver=3.9.1′></script&gt;
<script type=”text/javascript”>
function refresh_handler() {
function refresh() {
var url = $(location).attr(‘href’);
window.history.pushState(“”, “The Simple Truth”, url);
$(“#refreshanalytics”).load(“http://www.thesimpletruth.in/inc-analytics.php&#8221;);

}
setInterval(refresh, 60*1000); //every 1 minutes
}
$(document).ready(refresh_handler);
</script>
<span class=”refreshanalytics”></span>

Thanks in advance

Post count: 6535

Hi

Try to deactivate Lazy load animation from theme panel > template settings: http://screencast.com/t/TmSFtcyXGf clear all caches and test again. If the problem persist please provide a link so I can it this closer.

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.