simplify CustomElements polyfill upgrade optimization.