tweaks to theme preview and CSS customizer generation for performance and reliability