JavaScript is the new black and each and everyone has re-discovered JavaScript and it’s inevitable not to have JavaScript as one of your tools. Especially if you’re working with SharePoint, Office or Office 365 Apps or Add-Ins.
In this short post I’m just documenting and sharing a small and nifty JavaScript hack that is very handy when you’re doing for instance JavaScript injection, one of the most popular customization patterns for Office 365 and SharePoint Online at the moment. I often find myself in the situation that I need to deploy and inject a JavaScript file and an accompanying CSS file. More than often both the JS file and the CSS file is very small and I’ve found it very handy to combine the JS and CSS file into one JS file.