Tiggles ツ of Speak Creative
11/28/2018 - 5:42 PM

[Remove Stylesheet] Using jQuery to remove dynamically added stylesheets #javascript #sitewrench

[Remove Stylesheet] Using jQuery to remove dynamically added stylesheets #javascript #sitewrench

//add this to the bottom of the page to ensure that the stylesheet was loaded before removing. 

<script>
$('link[rel=stylesheet][href*="/javascripts/jquery-themes/smoothness/jquery-ui-1.8.18.custom.css"]').remove();
</script>