infinite-scroll: Tumblr - Uncaught DOMException: Failed to set the 'responseType' property on 'XMLHttpRequest'
First, thanks for keeping infinite-scroll alive and updating it new heights
I have old v2 code which I tried to update to new v3 API and in some ways not sure how to completely change as it uses old Infinite Scroll, ImageLoaded, Isotope and callback function to launch fancyBox too:
$(function() {
var $container = $('.main-content');
$container.imagesLoaded({
background: true
}, function() {
$container.isotope({
itemSelector: '.post-article',
layoutMode: 'masonry',
transitionDuration: '1s'
});
});
$container.infinitescroll({
itemSelector: ".post-article",
navSelector: "#pagination",
nextSelector: "#pagination #next-page a",
loading: {
finished: undefined,
finishedMsg: "",
msg: null,
msgText:"",
selector: null,
speed: 'fast',
start: undefined
},
bufferPx: 5500,
prefill:true,
debug: true,
animate:false
},
// trigger Masonry as a callback
function(newElements) {
var $newElems = $(newElements).css({
opacity: 0
});
// ensure that images load before adding to masonry/isotope layout
$newElems.imagesLoaded(function() {
$newElems.animate({
opacity: 1
});
$container.isotope('appended', $newElems);
$newElems.each(function()
{
$(this).find(".image-thumbnail a").each(openFancyBox);
});
});
}
);
});
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (12 by maintainers)
Thanks for that. This bug is occurring because the XMLHttpRequest has been set to syncronous for some reason. I don’t know why just yet. I see that Tumblr actually modifies
XMLHttpRequestwhich is weird. I’ll continue to investigate.I seem to have fixed the issue by specifically adding true attribute to
as in #705
v3.0.2 has been released with this PR merged. Please update! Thank you again to @shinoamakusa for the contribution and saving my day 🌈 🐻
@shinoamakusa Thanks for digging into this. Your fix has been merged and will be out in the next release.
That gives me the following error in Developer Console:
Live url is http://jai-envie-de-toi.ml/ (be aware that it contains sensitive adult content aka nudity)