In #22 I fixed the shared preview functionality if you injected the script after the onload event fired. This update improves that fix so it also works in the case where DOMContentLoaded has fired, but onload hasn't happened yet. This is now essentially doing the same thing as jQuery's $(document).ready() so it should be more bullet-proof than the previous fix.
In #22 I fixed the shared preview functionality if you injected the script after the onload event fired. This update improves that fix so it also works in the case where DOMContentLoaded has fired, but onload hasn't happened yet. This is now essentially doing the same thing as jQuery's
$(document).ready()
so it should be more bullet-proof than the previous fix.