Make initial prefixing work after DOMContentLoaded