performance improvements for webkit