html editor optimizations