Responsive optimizations to templates