How can i show a Loading Spinner while loading data-type="iframe" #638
-
I woukld like to show an Loading Spinner, which doesn#T by default. Where should i place the code. I have this.
Fancybox.bind('[data-fancybox]', { //Fancybox.show([{ |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, The loading spinner is displayed by default when the page is preloading. If you set If you can control content of your page, then you could display loading icon by yourself. Or you could force to display loading icon using this code snippet: Fancybox.getInstance().showLoading(Fancybox.getSlide()) btw, if you do that and wonder why conter is not visible, then it is due to this CSS snippet: .is-loading .fancybox__content {
opacity: 0;
} |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot.
Fancybox.bind('[data-fancybox]', { ... my Code above ... }); gives me an errror. where is this to place ? |
Beta Was this translation helpful? Give feedback.
-
If you have access to the iframed page, then you call it using |
Beta Was this translation helpful? Give feedback.
Hi,
The loading spinner is displayed by default when the page is preloading. If you set
data-preload="false"
, the page is not preloaded and is displayed "as is".If you can control content of your page, then you could display loading icon by yourself.
Or you could force to display loading icon using this code snippet:
btw, if you do that and wonder why conter is not visible, then it is due to this CSS snippet: