In the newly released Safari 10.1 (macOS Sierra), the browser seems to fire the load events (document.DOMContentLoaded and window.load) before flexbox is done calculating widths and heights.
I have a script that calculates the height of an element in order to decide whether the content should be split into multiple elements.
The solution renders invoices that are printed on dead trees which is why the content needs to be split into separat actual elements.
Is there any other event that I can listen to in order to execute the script once flexbox has done it's magic?
The solution works perfectly on Chrome, Internet Explorer, Firefox, Opera and older versions of Safari.I can make it work in Safari 10.1 by using setTimeout of 100ms but that feels kind of hacky.