Title: Spaceless HTML Plugin
Last modified: August 19, 2016

---

# Spaceless HTML Plugin

 *  [damonjablons](https://wordpress.org/support/users/damonjablons/)
 * (@damonjablons)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/spaceless-html-plugin/)
 * I’m a PHP developer, and I think it’d be useful and fun to make a spaceless HTML
   plugin.
 * What it would do is take the templates before delivery, and parse out all unnecessary
   whitespace from them. The HTML would come out as one-line. To see spaceless HTML
   in action, check out [reddit.com](http://www.reddit.com) and view source.
 * I’m not exactly sure how templating works in wordpress, but I can see that it’s
   just messy PHP (no offense). Do the templates get parsed before they’re delivered?
   Or are the function calls within the templates just echoing the content from 
   the database?
 * If that’s the case, then I’d probably integrate the plugin with a caching solution.
 * Please point me in the right direction. Thanks for the help.

The topic ‘Spaceless HTML Plugin’ is closed to new replies.

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [templates](https://wordpress.org/support/topic-tag/templates/)

 * 0 replies
 * 1 participant
 * Last reply from: [damonjablons](https://wordpress.org/support/users/damonjablons/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/spaceless-html-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
