When loading a CSS/JS file from CDN or any external server, it is possible (even with low probability) to miss the file due to external failure. In this case, the html page will
I would do it this way.
Create a class within your stylesheet ui-helper-hidden
and then add a div as the first element on your page;
After you have checked to make sure your CDN javascript file has been loaded, then use this bit of code note i am using jquery
This will check to see if the element which should be hidden is or not. If it isnt hidden, then you know your css file has not loaded from the CDN.
I use this method for jQuery and jQuery UI via a CDN