Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2010 at 17:21 UTC
Updated:
15 Jul 2010 at 23:39 UTC
Minifying HTML reduces the size of the page by upto 10-15%, and google pagespeed recommends minifying HTML. Themes pages tpl.php included with views module are not minified for HTML. This applies to template files of many other drupal modules too. We got to minify them!\
I have attached minified views-view-table.tpl.php. I could reduce the size from 1.5 to 1.3KB
| Comment | File | Size | Author |
|---|---|---|---|
| views-view-table.tpl_.php_.txt | 1.38 KB | mclaren |
Comments
Comment #1
mclaren commentedMinifying HTML link: http://code.google.com/speed/page-speed/docs/payload.html#MinifyHTML
Comment #2
esmerel commentedI don't remotely see how this is a bug, or critical.
Comment #3
esmerel commentedAlso, your 'minifying' just removes spaces and sacrifices readability.
Comment #4
blitux commentedIs there a way to achieve this automatically? Using a sort of cache to avoid the overhead of processing the html on each page request.
Comment #5
blair003 commentedI could be wrong, but I don't think there's that much to be gained by minifying html if you are already using compression (other than a better pagespeed/yslow score).
To test, you could compress the file and see how many bytes that is, then minify it, compress it and see how many bytes that is. I would be suprised if it's 10 to 15% difference between the two files.