Uploaded image for project: 'JBoss Developer Materials'
  1. JBoss Developer Materials
  2. JDF-76

Add locally hosted fallback for cdn hosted js

XMLWordPrintable

      [18:08] <kborchers> after your script tag for including jquery from cdn, you can just add something like
      [18:08] <kborchers> <script>window.jQuery || document.write( '<script src="js/libs/jquery-1.7.2.min.js"><\/script>' )</script>
      [18:08] <kborchers> similar for bootstrap

            jporter@redhat.com Jason Porter
            pmuiratbleepbleep Pete Muir (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: