xwp / wp-dependency-minification

Dependency Minification plugin for WordPress
http://wordpress.org/plugins/dependency-minification/
52 stars 10 forks source link

Introduce a button to force-trigger the minification process #45

Open shadyvb opened 10 years ago

shadyvb commented 10 years ago

Relates to #43

lkraav commented 10 years ago

When I'm setting up fresh new sites, I'm noticing I'm not able to get the minification process triggered in a reasonable amount of time by just browsing. Is this force button the thing I'm looking for?

westonruter commented 10 years ago

Yes, and/or instead of scheduling an “immediate” minification action, it could do the minification inline (on the fly) if an admin user is browsing the site. This would result in slower initial page loading for admin users, but at least the minification results would appear faster. However, there are unique scripts that only get enqueued when a user is logged in, so actually the minified scripts may not even be the same ones that end users would normally see.

There could be a query_var for force-triggering such inline minification even for non-authenticated users. WordPress could then cURL the siteurl with this query_var to trigger inline minification.

lkraav commented 10 years ago

Does anyone here have any quick hack level code stashed right now to achieve any one of these quick minification trigger strategies? Can be totally non-polished.

westonruter commented 10 years ago

I do not. My time is limited to look at this plugin.