Skip to content

v5.3.0

Compare
Choose a tag to compare
@davidjbradshaw davidjbradshaw released this 04 Sep 09:51
· 39 commits to master since this release

What's Changed

This release of iframe-resizer has focused on the final few areas where performance could be further improved, with the aim that, even with the most complex pages; size changes are detected, calculated and dispatched from the iframe in under 1ms. Setting the log: true option will now measure and display this time.

In tests with Google Chrome on an M1 Mac, the examples page of the iframe-resizer website average around 0.3ms. The logging has been left on if you would like to see the results on your own system.

Performance

  • Moved resize event throttle to capture all triggering events in #1326
  • Refactored several forEach() statements to for...ofin #1329
  • Prevent pageInfo being double fired on parent page in #1321
  • Optimised resizerObservers setup in #1325
  • Display content size calculation time in #1332

Changed

  • Isolate parent/child when messages passed via same-domain in #1319
  • Use setTimeout(0) on event callbacks with void return type in #1324
  • Added Sandbox settings check to timeout warning in #1328

React

  • Remove npm dependency for Warning package in #1327

Angular

Fixes

  • Corrected case of child settings object in #1318
  • Disable parentProps when requested to turn off stream in #1331

Huge thanks to @bjornoss for his work on the new Angular Directive.

Full Changelog: v5.2.6...v5.3.0