jquery - Prevent CSS from loading at all -


i've got site platform html , css built upon on complete lock down. 0 access application/server layer.

there few css files served platform , i've stripped them out little jquery

$(document).ready(function() {        $('link[rel=stylesheet][href*="userglobal"]').remove(); });  

while work , prevents "userglobal" stylesheet having impact on page presentation still loaded.

my question is, in absence of access application layer/server side of things there way prevent css file being delivered browser in first place?

my gut tells me no - i'd interested in hearing if has come across similar , solved it.

using javascript, there no way prevent css file being loaded browser if css included (either <link> or <style> tags) on html page.

you'll need way alter web server's http response (i.e. remove css) if want prevent browser loading it.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -