html compress advice

12 views
Skip to first unread message

Phil

unread,
Jul 26, 2012, 5:29:17 PM7/26/12
to django...@googlegroups.com
Hi,

Just looking for some advice/ wisdom really.

I have compressed my css/js files and am now looking to strip all the white space from the html in the templates to help speed things up as much as possible. Is putting my hole base.html file between django's "spaceless" template tag an ok way of going about this or would that slow things/ make much difference down in the long run?

Micky Hulse

unread,
Jul 26, 2012, 5:34:49 PM7/26/12
to django...@googlegroups.com
Hi,

On Thu, Jul 26, 2012 at 2:29 PM, Phil <phi...@gmail.com> wrote:
> Just looking for some advice/ wisdom really.

While not a direct answer to your question, there was a discussion on
the group recently on the topic of the spaceless tag:

"{% spaceless %} abuse (?)"
<https://groups.google.com/d/topic/django-users/x9tF3RO3rFg/discussion>

You might find some wisdom there. :)

Phil

unread,
Jul 26, 2012, 5:37:33 PM7/26/12
to django...@googlegroups.com
ah, thank you. I'll take a look now.

On Thursday, July 26, 2012 10:34:49 PM UTC+1, mhulse wrote:
Hi,
Reply all
Reply to author
Forward
0 new messages