Improvements in performance to avoid layout thrashing

...together operations which force a layout and those which invalidate a layout. Add option to remove preload areas from DOM.