Skip to content

Disable thumbnail preloading on the first opening (with different aspect ratio). #2044

Closed Answered by dimsemenov
H852ing asked this question in Q&A
Discussion options

You must be logged in to vote

You can disable placeholder image via placeholderSrc filter or by adjusting msrc in your data https://photoswipe.com/data-sources/#custom-html-markup

lightbox.addFilter('placeholderSrc', (placeholderSrc, content) => {
  return false;
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@H852ing
Comment options

Answer selected by H852ing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants