Skip to content

Instantly share code, notes, and snippets.

View cloudxero's full-sized avatar

Jorge Chavez cloudxero

View GitHub Profile
@cloudxero
cloudxero / gist:1981650
Created March 5, 2012 22:36
Dynamic loading of JS with mobile API.
(function () {
'use strict';
var head, script, siteid, domain, internal, mobilesite;
siteid = 20755;
domain = new RegExp('jimmcnatttoyota.com', 'i');
mobilesite = 'http://m.jimmcnatttoyota.com';
head = document.getElementsByTagName('head')[0];