Hello,

I use 7.x-1.3+4-dev version and still have the problem with safari unlimited reload on first time.

This problem appears in iphone, ipad and desktop safari.

any fix?

you can see the problem in my site www.adoumas.com

Comments

attiks’s picture

Assigned: adoumas » jelle_s

Any javascript errors on Safari?

attiks’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

There's something wrong with your resp_img.js file, this commit fixed this issue, but it looks like your javascript is missing parts of it

Line 72 should have

      if (Drupal.respImg_cookiesEnabled()) {
        var suffix = Drupal.respImg_getOptimalSuffix();
        location.replace(location.href);
        return;
      }

Your js contains the old code:

      $.cookie('respimg_test', 'ok');
      if ($.cookie('respimg_test') === 'ok') {
        $.cookie('respimg_test', null);
        var suffix = Drupal.respImg_getOptimalSuffix();
        location.replace(location.href);
      }
adoumas’s picture

My js file is up to date and the problem still exist...

Line 72 looks ok to me...

attiks’s picture

Assigned: jelle_s » Unassigned
Status: Postponed (maintainer needs more info) » Active

Did you try clearing your cahce, the javascript that is running now on your site contains the wrong code.

adoumas’s picture

Take a look again in the last js file
http://www.adoumas.com/sites/default/files/js/js_C5XsyL3ELKmkULLEpgVMPpA...

yes a have clear caches. from the first time i see the correct code in js.

attiks’s picture

Can you set a breakpoint at var cookieEnabled = (navigator.cookieEnabled) ? true : false; and step through the code. Post back the value of cookieEnabled and navigator.cookieEnabled

I tried it using browserstack, but even after blocking the cookie it was still working (keep in mind that they have a special environment)

PS: I love your 404 page ;-)

attiks’s picture

Other things to try

In the developer tools - console enter

  1. navigator.cookieEnabled - should return false
  2. document.cookie - should be an empty string
  3. Drupal.respImg_cookiesEnabled() - should return false
adoumas’s picture

With the brake point both 1 and 3 returns true and 2 returns "has_js=1" after the brake point page continues to refresh....

Thx for the comment about 404 ;) In love CSS3 <3

attiks’s picture

This sounds like a caching issue, can you see what request is made during the redirect, and see if the cookies respimg and respimg_ratio are set.

Do you have caching turned on in the webserver?
Do you have caching enabled in Drupal?

adoumas’s picture

Same problem with cache disable.

the cookie respimg and respimg_ratio are always true

attiks’s picture

cache of drupal or cache on the webserver?

can you try with 2 image mappings?

jelle_s’s picture

Status: Active » Postponed (maintainer needs more info)
attiks’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

Old issue, I think you better update to the picture module