Add a dev/prod toggle to the performance page to turn on/off the features.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | speedy.diff | 1.38 KB | arthurf |
| #1 | config.diff | 1.22 KB | arthurf |
Add a dev/prod toggle to the performance page to turn on/off the features.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | speedy.diff | 1.38 KB | arthurf |
| #1 | config.diff | 1.22 KB | arthurf |
Comments
Comment #1
arthurf commentedHere's a simple toggle for turning the use of minified files on or off. Defaults to off.
Comment #2
mfer commentedShould this toggle be a more generic development / production toggle? Something other modules or future functionality can tap into as well? Thoughts?
Comment #3
arthurf commentedWell it could be done with a hook I suppose... I like having it as a variable as it can easily be set in settings.local.php, via the interface, or changed in an update hook. But I'm happy to code it which ever way...
Comment #4
mfer commentedI agree it should be a variable. I'm just thinking of it's naming convention.
Comment #5
arthurf commentedOk, renamed to speedy_js_production
Comment #6
mfer commentedThis has been added. In addition I added a link on the modules page to the performance configuration screen and updated the help text to just talk about core JS. Currently don't handle contrib/custom.... yet.
Comment #8
adamgerthel commentedA variable works best. It works well with Tadaa