---
title: Optimize HTML By Removing Unnecessary HTML
description: "**Impact area** Performance **Severity** Medium ## Impact Unnecessary HTML increases the size of the component tree and the processing time for Ajax requests. ## Remediation Remove from your source code tags which the Visualforce page would remove at runtime (such…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/optimize-html-by-removing-unnecessary-html/"
updated: "2025-03-21"
category: Rules
---

# Optimize HTML By Removing Unnecessary HTML

**Impact area**

Performance

**Severity**

Medium

## Impact

Unnecessary HTML increases the size of the component tree and the processing time for Ajax requests.

## Remediation

Remove from your source code tags which the Visualforce page would remove at runtime (such as `<head>` or `<body>` inside an `<apex:page>` tag.

## References

See the Salesforce documentation article: [Optimizing HTML](https://developer.salesforce.com/docs/atlas.en-us.salesforce_visualforce_best_practices.meta/salesforce_visualforce_best_practices/pages_best_practices_perf_webdev_html.htm).
