I use this code to enable or disable page-based stylesheets.
$(document).on('pagebeforeshow', function () { var URL = $.mobile.path.parseUrl(window.location).toString().toLowerCase(); if (URL.indexOf("/investment.aspx") > -1 || URL.indexOf("/employees.aspx") > -1) { $("link[href^='../../Public/LongLabels.css']").attr("media", "all"); } else { $("link[href^='../../Public/LongLabels.css']").attr("media", "not all"); } });
Carter medlin
source share