Revert "update: Simplify webcore minimizer code"

This reverts commit b38972b8f58f7b3c87214d1a091cba0664f1c36d.