Fancybox pdfs will not load in an iframe in IE

25th March 2015
Back to Blog

If you’ve ever used Fancybox you’ll know it’s a great jQuery plugin for lightboxes that you can pass local web pages to and also documents like pdfs. But it’s hard to fix when it breaks!

So oh my did I ever need this answer on stack overflow! It shows how to set preloading to false, which ie8 doesn’t like; and has the side benefit of actually loading the document faster. Might be my fast internet connection at work but who knows.

if (jQuery().fancybox) {
iframe: {
preload: false // fixes possible issues with iframes and IE

Glad I found this.


Nathaniel Flick

I'm a Front End Web Developer passionate about usability. My primary specialties are HTML5, CSS3, SCSS, LESS, and jQuery and I am very familiar with Foundation and Bootstrap frameworks. I've worked on top of and with WordPress, Shopify, Rails, Python, and frameworks.

Leave a Reply

Your email address will not be published. Required fields are marked *