0

Hi i use cdn for css in project

my scripts is loaded successfully but can't load css

so is there any technique to write fall back url in css like javascripts??

Lalji Kanjareeya
  • 135
  • 2
  • 11
  • 2
    If you're worried about the CDN not correctly distributing the files your best bet may be to host them yourself. – James Donnelly Jan 07 '15 at 09:35
  • I think the only solution is js really see here: http://stackoverflow.com/questions/7383163/how-to-fallback-to-local-stylesheet-not-script-if-cdn-fails – lharby Jan 07 '15 at 09:35
  • Where would your fall back files be hosted? What is that fails? – musefan Jan 07 '15 at 09:39
  • It *is* possible that your site might load for a client, but that clients network might block a particular cdn, hence the common sense in using a local backup copy. – lharby Jan 07 '15 at 09:42
  • fallback file is on orignal server hosted our site – Lalji Kanjareeya Jan 07 '15 at 09:48

1 Answers1

0

I like this js plugin to ensure that fallbacks are loaded if required: http://fallback.io/

Jack hardcastle
  • 2,748
  • 4
  • 22
  • 40