html output optimization