0

When using multiple jsbin embeds in a presentation, each bin doesn't load until I click one of the headers (ie, "HTML", "CSS", etc.). This only seems to happen in larger presentations like this one (navigate to /3/4 from the start to see the unloaded embed). I tried running the code mentioned here without success:

[].forEach.call(document.querySelectorAll('iframe'), function (iframe) {
  try {
    iframe.contentWindow.postMessage('jsbin:refresh', '*');
  }
  catch(err){
  }
});
mike
  • 22,931
  • 31
  • 77
  • 100

1 Answers1

1

A fix is waiting to go live in the morning UK time: https://github.com/jsbin/jsbin/commit/6ba04d0697084a7a25b06bd7d76cbf74b4556f19

It was a problem with the visibility of the panels in jsbin that needed resetting once the iframe comes in to view.

Remy Sharp
  • 4,520
  • 3
  • 23
  • 40