Interesting, I did not know those functions existed. If you can get those to work, then I’d definitely do it that way. Let me know if you do! 🙂
Honestly, I never thought about the changes being overwritten when updating. I wonder if WordPress only updates files that have newer modified dates than the current files or if they do a full overwrite of all files. If they do the former, as long as the “w3-total-cache/lib/W3/Plugin/Minify.php” file wasn’t changed by W3 EDGE, you’d be safe. Of course, if it does get overwritten, it shouldn’t be too hard to redo the changes. Just be sure to save a link to my blog post somewhere in case this ever does happen.
If you do manage to get those functions working, however, that’d be the best way.
Hi,
I solved this by manually editing the source of the W3 Total Cache plugin. I now have my CSS files being placed directly before the </head> tag and my JS files being placed directly before the </body> tag.
Been meaning to write a blog post about it and your reply inspired me to finally do so today. Here it is: W3 Total Cache: Better CSS/JS placement.