magnific-popup


Magnific Popup plugin: Preloader not working on iframe


I used the plugin to open up an internal page, which works fine with iframe but the preloader does not show up. I just want to display a preloader image or a "loading..." text. This is what I tried:
$(document).ready(function() {
$('.link').magnificPopup({type:'iframe', preload: true});
});
Is there something else I need to do?
If you look at the Javascript source of jquery.magnific-popup.js, the mfp.updateStatus('loading'); is never called in the iFrame code block. So what I did was simply add mfp.updateStatus('loading'); to the initIframe function and remove mfp.updateStatus('ready'); from the getIframe function. It may be better to add a setTimeout to call the mfp.updateStatus('ready') but it seems to work okay without that.

Related Links

Magnific Popup Plugin Not Showing when Previewed in Browser
Magnific Popup Wordpress
Magnific vs PhotoSwipe
How to adjust video size magnific popup
$.magnificPopup.open() callbacks is not working
How do i setup magnific-popup
magnific-popup - re-initiate on ajax content
Magnific-popup cancels all requests on open
Magnific Popup fails to work with multiple galleries on a page
magnific-popup open in parent when calling from iframe
Magnific popup iframe closeOnBgClick does not work
Magnific Popup Text Links
Magnific popup - undefined is not a function when parsing markup
Adding onclose method in magnificPopup (that autoloads on pageload)
Popup does not work fine with final tiles grid gallery
Magnific Popup - Enable zoom animation when using $.magnificPopup.open

Categories

HOME
maven
osgi
gitlab
hive
wso2
reflection
hp-exstream
electron
read-eval-print-loop
gis
getelementsbytagname
jira
cross-browser
wamp
mouse
kibana-4
node-pdfkit
handsontable
postgres-xl
timeout
vb.net-2010
try-catch
vaadin7
serilog
pugjs
excel-vba-mac
swiftlint
ml
riot.js
intentfilter
cloudhub
sylius
django-storage
selectedindexchanged
uninstall
neo4j-spatial
bpel
react-chartjs
phonegap
data-manipulation
rotational-matrices
xcode-extension
sqlite2
impersonation
webdriver-manager
sas-visual-analytics
core-plot
spring-security-kerberos
no-www
acoustics
user-accounts
python-c-api
nstextview
setter
magma
lync-client-sdk
blacklist
medium.com
azure-sdk
home-directory
file-writing
intrusion-detection
google-web-starter-kit
connect-by
holder.js
pagedlist
sigabrt
dlna
goose
wapiti
pervasive-sql
device-orientation
python-green
relocation
rdl
xojo
castle
valuechangelistener
comexception
stxxl
html5-notifications
inbox
jquery-mobile-dialog
hosts-file
chrono
php-parser
stage
appender
krl
oncheckedchanged
paster
perfect-hash
noscript
thread-local-storage
data-acquisition

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App