Bug 1007940 - Improve the performance of editor initialization; r=bzbarsky