I looked at a lot of solutions for this and here's what I've come up with:
(function getjQuery(callback) {
if ('complete' === document.readyState) {
var script = document.createElement('script');
var target = document.documentElement;
script.src = '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';