[Define New Theme] 9. The css/js that is served and cached should be minified/compressed/gzipped.

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
User avatar
VSE
Extension Customisations
Extension Customisations
Posts: 670
Joined: Mon Mar 08, 2010 9:18 am

Re: [Define New Theme] 9. The css/js that is served and cached should be minified/compressed/gzipped.

Post by VSE » Sun Sep 14, 2014 6:05 pm

Louis7777 wrote:
brunoais wrote:IMO we should do most of those! but server-side and only on compile time.
I was thinking the other day... isn't there any server-side way to dynamically combine all the required .css files into one file and then serve it?
yeah..no! That's what phpBB 3.0 did, and it was bad, and thankfully removed from 3.1.

CSS/JS should be served up as-is, already minified/concatenated, right form the server.

How it gets minified/concatenated will up to the developers.
Has an irascible disposition.

User avatar
callumacrae
Infrastructure Team
Infrastructure Team
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: [Define New Theme] 9. The css/js that is served and cached should be minified/compressed/gzipped.

Post by callumacrae » Mon Sep 15, 2014 10:49 am

Louis7777 wrote:
brunoais wrote:IMO we should do most of those! but server-side and only on compile time.
I was thinking the other day... isn't there any server-side way to dynamically combine all the required .css files into one file and then serve it?
There are libraries like assetic, but they're pretty terrible.

I've said it many times before, I'll say it again: I've never used a front-end tool written by a backend developer and liked it.
Made by developers, for developers!
My blog

Post Reply