Skip to content

Commit

Permalink
Merge pull request #678 from GrosPoulet/master
Browse files Browse the repository at this point in the history
Speed-up images display in 500px & Facebook plug-ins
GrosPoulet authored Feb 4, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 2a44447 + 846e691 commit 59d8045
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/500px.js
Original file line number Diff line number Diff line change
@@ -78,6 +78,7 @@ hoverZoomPlugins.push({
link.data().hoverZoomSrc.unshift(fullsizeUrl);
link.addClass('hoverZoomLink');
callback(link);
hoverZoom.displayPicFromElement(link);
}
}
});
@@ -97,6 +98,7 @@ hoverZoomPlugins.push({
link.data().hoverZoomSrc.unshift(fullsizeUrl);
link.addClass('hoverZoomLink');
callback(link);
hoverZoom.displayPicFromElement(link);
}
}
}
@@ -163,6 +165,7 @@ hoverZoomPlugins.push({
link.data().hoverZoomSrc.unshift(fullsizeUrl);
link.addClass('hoverZoomLink');
callback(link);
hoverZoom.displayPicFromElement(link);
}
}
});
@@ -182,6 +185,7 @@ hoverZoomPlugins.push({
link.data().hoverZoomSrc.unshift(fullsizeUrl);
link.addClass('hoverZoomLink');
callback(link);
hoverZoom.displayPicFromElement(link);
}
}
}
6 changes: 6 additions & 0 deletions plugins/facebook.js
Original file line number Diff line number Diff line change
@@ -149,6 +149,7 @@ hoverZoomPlugins.push({
// store uri
sessionStorage.setItem(currentId, uri);
callback(currentLink, name);
hoverZoom.displayPicFromElement(currentLink);
});
}

@@ -266,6 +267,7 @@ hoverZoomPlugins.push({
res.push(link);
cLog('Facebook photo fullsizeUrl (from sessionStorage): ' + storedUrl);
callback(link, name);
hoverZoom.displayPicFromElement(link);
}
}
}
@@ -296,6 +298,7 @@ hoverZoomPlugins.push({
// store uri
sessionStorage.setItem(id, uri);
callback(link, name);
hoverZoom.displayPicFromElement(link);
return true;
}

@@ -333,6 +336,7 @@ hoverZoomPlugins.push({
data.hoverZoomSrc.unshift(storedUrl);
cLog('Facebook photo fullsizeUrl (from sessionStorage): ' + storedUrl);
callback(currentLink, name);
hoverZoom.displayPicFromElement(currentLink);
}
});
};
@@ -404,6 +408,7 @@ hoverZoomPlugins.push({
res.push(link);
cLog('Facebook photo fullsizeUrl (from sessionStorage): ' + storedUrl);
callback(link, name);
hoverZoom.displayPicFromElement(link);
}
}

@@ -507,6 +512,7 @@ hoverZoomPlugins.push({
res.push(link);
cLog('Facebook photo fullsizeUrl (from sessionStorage): ' + storedUrl);
callback(link, name);
hoverZoom.displayPicFromElement(link);
}
});

0 comments on commit 59d8045

Please sign in to comment.