AdBock's Content Blocking feature on Safari interfering with BLazy #78
Description
Hi,
It seems that AdBlock's "Content Blocking" feature is interfering with BLazy. Since the "Content Blocking" feature of AdBlock seems to be only available in Safari, this issue concerns only the Mac. I've tested this on other browsers and on other platforms as well, but only Safari on the Mac running the AdBlock plugin (with Content Blocking disabled) seems to be effecting the functionality.
DETAILS:
I have two web pages, pageA.html and pageB.html. Both pages have a couple of images (above and below the fold), and both pages link to one another.
(Note: I assume this has to do with AdBlock, but in order to reproduce this issue, you need to upload files to a server. Running it locally doesn't have an effect.)
So I go to pageA on the server. The images above the fold load fine, they are fading in. Great. Now I click the link on the page that takes me to pageB. Same story. Images above the fold on pageB load find, they are fading in. Great.
Now, on pageB click the link that takes you back to pageA. Arriving to pageA, the images above the fold are not visible and they are not loading. When I scroll down to reveal images below the fold, they are loading OK, and they are fading in. But now I scroll up (still on pageA), and the images at the top (above the fold) are still blank.
Now on pageA, I click the link that takes me back to pageB. Again, images above the fold on pageB are now not loading. I can go back and forth between pageA and pageB, and the images above the fold will not load. Viewing the source reveals that indeed the "src" attribute of the images (that are above the fold) are not loaded.
I can refresh the page (either A or B) and the images will be loaded again. But now if I repeat the exercise (going back and forth between A and B), above the fold images will not load again.
CONCLUSION:
Finally I have narrowed it down, that this is only an issue in Safari on the Mac, running AdBlock. In AdBlock's settings, one of the option is "Enable Safari Content Blocking". If this checkbox is NOT checked (for some reason you'd think it's the other way around), then this issue happens what I jsut described above.
However, when you DO check the "Enable Safari Content Blocking" checkbox, BLazy will work again correctly and going back and forth between pageA and pageB will load all images that are above the fold.
I have tested this under the following scenarios:
Mac OS X El Crapitan 10.11.3
- Safari 9.0.3: If AdBlock is installed and "Enable Content Blocking" is checked, above the fold images will not load the second time you visit the same page.
- Firefox 44.0.2 and Firefox Developer Edition 46.0a2: AdBlock is not available for Firefox, but with and without AdBlock Plus, works fine.
Windows 7
Works fine on all browsers (Firefox, Chrome, IE, Opera)
Windows 10
Works fine under Edge, Chrome, Firefox
Unfortunately, by default, the plugin's "Enable Safari Content Blocking" is disabled, which causes the issue.
Link to AdBlock for Safari: https://getadblock.com
OS X 10.11.3 El Crapitan
Safari 9.0.3
BLazy 1.5.3
AdBlock 2.49