I would like to move our general reflections on the further development regarding this basic question here. Michiel has already proposed a quite good idea with auto-generating a customized js.php - I like this approach a lot. Nevertheless, there are some pros and cons, as always are, here are the ones I see.
- I as a module dev like that a lot.
- I as someone into simple and convenient interfaces like it even more.
- Not every site builder is a module dev or just wants to be one. Those who just download, say, admin menu und want to speed it up, will not necessarily know which options to set and why.
- What if module dev A addresses the most basic js.php (call it "the original one") while module dev B relies on the site builder to activate feature x and y - we would at least still have to make sure, that all optional feature constellations are cross-compatible.
However, I would still like to convince you of the "two basic callbacks" idea. Let's call them "p-callback" for the classic one ("performance") and "x-callback" for the extended one. For compatibility, the first one stays named "js/", the latter one "jsx/" (as I proposed in the other thread).
We could still use all the - really good! - extensions we just made, but would put them in the x-callback and still add cool new features without risking anything. We would not even hurt someone, as hardly any user of our module would already have launched own releases with new functions basing on the most recent new features. (Except for neilnz, probably, but he is for sure following our issues ;))
Also, I would suggest that, if we stick to generating an (even custom!) js.php, we should not do it half way (which is: downloading, saving, uploading) but simply saving the js.php directly to the Drupal root. I have this solution in chatblock, where another php file is needed in the root dir, and that works fine. We can also try the same with the .htaccess modifications, I have a rough idea of how we can do this - if we decide so - and would try to implement both features.
Appreciating your opinions!