• Resolved tomcopsk

    (@tomcopsk)


    Hi again, sometimes in Ghrome, and on iOS Safari there is a problem – if you visit my page for first time, there is no slider picture, just thumbs under it. After refresh it apears. I tried it many times, when I delete Safari cache, it happens. I already tried another iOS device and the same behavior.
    Here are examples:

    View post on imgur.com

    View post on imgur.com


    and after refresh

    View post on imgur.com

    I have no cache plugin. On desktop after page opening it shows slider image and then thumbs, on iOS device it’s reversed. Thumbs and then nothing.

    • This topic was modified 5 years ago by tomcopsk.
    • This topic was modified 5 years ago by tomcopsk.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tomcopsk

    (@tomcopsk)

    For now I solved it with cache plugin.

    Thread Starter tomcopsk

    (@tomcopsk)

    EDIT: Cache plugin didnt help me. I think (don’t know exactly) there’s problem with use of cS-hidden class in function.php file in plugin directory. I tried som things, but i’m not an expert in php and js.
    For now I solved it with adding this code after line 165 (there are commands done after slider load) in function.php – it refreshes browser window after slider full load, but only for first time. And it should be done only on iOS devices. On Android and desktop I didn’t notice this problem.

    window.onload = function() {
    	if(navigator.userAgent.match(/(iPhone|iPod|iPad)/i)) {
    	 	if(!window.location.hash) {					        	 
                         window.location = window.location + '#loaded';
    		     window.location.reload();
    		    }}
    }
    	                }
    
    • This reply was modified 5 years ago by tomcopsk.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sometimes slider image not loaded’ is closed to new replies.