Add a dev/prod toggle to the performance page to turn on/off the features.

CommentFileSizeAuthor
#5 speedy.diff1.38 KBarthurf
#1 config.diff1.22 KBarthurf

Comments

arthurf’s picture

StatusFileSize
new1.22 KB

Here's a simple toggle for turning the use of minified files on or off. Defaults to off.

mfer’s picture

Should this toggle be a more generic development / production toggle? Something other modules or future functionality can tap into as well? Thoughts?

arthurf’s picture

Well 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...

mfer’s picture

I agree it should be a variable. I'm just thinking of it's naming convention.

arthurf’s picture

StatusFileSize
new1.38 KB

Ok, renamed to speedy_js_production

mfer’s picture

Status: Active » Fixed

This 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

adamgerthel’s picture

A variable works best. It works well with Tadaa