K
K
Kirill Kazakov2015-07-18 14:58:46
css
Kirill Kazakov, 2015-07-18 14:58:46

How to check if css is loaded from cdn?

You can check if jquery is loaded from cdn like this

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.mi.."></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>

How to check if css is loaded from CDN ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-07-18
@mausspb

Kirill Kazakov : well, check if a certain class has a certain property and act
although this approach is, to put it mildly, a crutch - it is better to look for a way through increased availability

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question