I'm pretty sure jQuery does this behind the scenes: https://github.com/jquery/jquery/blob/1ca84214cc89d9e5f8af12b18b34426fc91b1b08/src/css.js#L435

Not sure what else to delete.