Skip to content

Lack of CDN fallback #12

Description

@DylanTackoor

You can click on the Preview tab above to see how your request will look like once you submit this new issue.

Please mark with an x the box that best describes your request:

  • Report a bug
  • I want help
  • I have a question
  • I want to propose an enhancement
  • I have a new-feature request

If you want to propose an enhancement or have a new-feature request, please provide us with a detailed description of the enhancement or the request below:

We currently are loading some scripts, such as Bootstrap, via a CDN as below:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

If for whatever reason this CDN goes down our front end is screwed. One tested solution to this is to check if a method exists and load a local backup if it doesn't.

<script>$.fn.modal || document.write('<script src="/assets/js/lib/bootstrap.min.js">\x3C/script>')</script>

Is there anything else you would like us to know?

While I know the above works, I don't recall where exactly the line is written to in the DOM.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions