Support » Plugin: Refresh Post Page WUD » Auto Refresh Page Only once

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AccountClosed

    (@wistudatbe)

    Hello,
    Thanks for using my plugin.
    If you set this to 3600 , it will refresh every HOUR.
    Is this ok for you?
    Regards, Danny

    Hi Danny,

    Actually, we are facing an issue with the google maps on that page. The page, when loaded the first time, doesn’t load the map entirely but after refresh, it loads properly. So we wanted to load the page once after maybe 1 second and that’s it.

    Thanks,
    Prasenjit.

    Plugin Author AccountClosed

    (@wistudatbe)

    Hi Prasenjit,

    You do not need my plugin, if you need to refresh ONCE the page.
    Just put this code in your header file:

    
    <body onload="if (location.href.indexOf('reload')==-1) {location.replace(location.href+'?reload')}">
    

    Regards, Danny

    Hi Danny,

    I tried putting this in my Theme’s Header.php file but it didn’t work. I tried the following code in the particular page using Visual Composer’s JS element which does refresh it once. but is it possible to make the refreshes more than once can we set it to 3-4 times as well?

    <script type=’text/javascript’>

    (function()
    {
    if( window.localStorage )
    {
    if( !localStorage.getItem( ‘firstLoad’ ) )
    {
    localStorage[ ‘firstLoad’ ] = true;
    window.location.reload();
    }
    else
    localStorage.removeItem( ‘firstLoad’ );
    }
    })();

    </script>

    In your code, I can see the value as -1. What if we could use this code and add -3 so will the age refresh 3 times?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Auto Refresh Page Only once’ is closed to new replies.