Viewing 15 replies - 1 through 15 (of 18 total)
  • I’m afraid I don’t have a Mac to test your site… Can you open the Developer Tools in Firefox, reload the page and see if there are any script errors reported?

    Thread Starter Subhash.at

    (@subhashat)

    Yes there are errors reported (I think to remember not because of your plugin) but the same errors are present when the same Firefox version runs with Mac OS 10.7.5 and there it works…

    What are these errors? Can you copy them here?

    Thread Starter Subhash.at

    (@subhashat)

    Checking https://fineart-fotografie.at/still-living-beings/ with the plugin “Web Developer” on Mac OS 10.7.5 with Firefox 38.05:

    Zeitstempel: 22.6.2015 21:44:46
    Fehler: TypeError: EventEmitter is not a constructor
    Quelldatei: https://fineart-fotografie.at/[...]/themes/renkon/js/imagesloaded.js?ver=3.0.2
    Zeile: 93

    On Mac OS 10.10.3 with Firefox 38.05:

    Fehler: TypeError: EventEmitter is not a constructor
    Quelldatei: https://fineart-fotografie.at/[...]/themes/renkon/js/imagesloaded.js?ver=3.0.2

    OK, so it looks like this error is a blocking error. This means that following that error, all javascript execution is terminated. In this case, preventing essential FancyBox scripts (that are loaded in the footer) from being run.

    As it is coming from the theme’s imagesloaded.js, your best bet is to contact the theme developer(s). Maybe they can say more about the error. A variant also occurs in my Chrome browser and it looks similar to https://github.com/desandro/imagesloaded/issues/85 but I’ve no idea if that is helpful information at all…

    Maybe simply upgrading imagesloaded.js to the one inside the latest zip https://github.com/desandro/imagesloaded/releases/tag/v3.1.8 will fix it?

    Thread Starter Subhash.at

    (@subhashat)

    Installed imagesloaded.js v3.1.8, but it sees that nothing has changed. The error is gone but Easy FancyBox behaves the same…

    So on Mac there is no more error shown? Then I have no explanation for why FancyBox would not work…

    If you right-click that first image that should be popping up but doesn’t, and select Inspect Element, does the wrapping link tag show a id="fancybox-auto" and a class="fancybox image" attribute in the Inspector code frame?

    Thread Starter Subhash.at

    (@subhashat)

    No! No class=”fancybox image” on 10.10.3 (Yosemite). But on 10.7.5 ok.

    OK, so no class=”fancybox image” … but does it show id=”fancybox-auto” or is that missing too?

    Thread Starter Subhash.at

    (@subhashat)

    No, the id is there.

    But no error messages? Strange… I notice you’re using a script snippet to disable FancyBox for small screens:

    <script type="text/javascript">
    var pixelRatio = window.devicePixelRatio || 1;
    if(window.innerWidth/pixelRatio < 641) {
      	easy_fancybox_handler = null;
    };
    </script>

    Could you try removing that snippet and test again on the Mac?

    Thread Starter Subhash.at

    (@subhashat)

    No errors.

    Could you try removing that snippet and test again on the Mac?

    I did and this it is! Now it works. So the snippet must be altered. Maybe the “retina” display is the problem?

    The line var pixelRatio = window.devicePixelRatio || 1; is actually there to take retina and other HD displays into account but it might indeed be failing here.

    Could you place the following snippet, then reload the page and tell me what each reported value is? To see the values, open the developer tools Console tab.

    <script type="text/javascript">
    var pixelRatio = window.devicePixelRatio || 1;
    console.log ( 'Inner width: ' + window.innerWidth );
    console.log ( 'Pixel ratio: ' + pixelRatio );
    console.log ( 'Calculated: ' + window.innerWidth/pixelRatio );
    </script>

    Thanks ??

    Thread Starter Subhash.at

    (@subhashat)

    Inner width: 1280
    Pixel ratio: 2
    Calculated: 640

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Doesn't work for me on Yosemite’ is closed to new replies.