If you want in pure JavaScript, you can use document.write.
document.write('<script src="myscript.js" type="text/javascript"></script>');
If you use the jQuery library, you can use the $.getScript method.
$.getScript("another_script.js");
jsfiddle.net/rlemon/m44n58eu if I posted this code, (and a link to the fiddle) then posted a fiddle with this same concept but cleaned up for a nice scrolling cloud thingy like on rlemon.ca would you all prefer that, or would you like more of an explanation of the code
@Loktar I'm pulling some templates from several places with gulp src. I want to change them all to the same path before running them through angular-template-cache. The only way I can think to do it is with an intermediate gulp-copy, which is quite the waste. Any ideas?
Is there a JS function which allows you to select an element in an array at random but with an exception... aka any element in [] from position 0 to 9 except 7.
@AwalGarg, if it helps: when picking randomly from 9 elements but excluding 1, there are 8 elements to pick from. The question becomes how to map 8 elements to 9
Adding 1 to elements after the exclusion(s) in order is a fair way of making that mapping
@monners re:tweet, I use element based media queries all the time, super helpful. I can't image much cons to them, except the extra code, which is meh.
@mikedidthis Yeah, I'm working on a styleguide at the moment and thinking about how to approach media queries in a consistent way. The more modular the components get, the more it makes sense to nest the media queries within the component itself
Working on typography at the moment. It's a bitch.