question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scripts and Style links local rather than pulled from Internet

See original GitHub issue

I have a great use case for an offline application to use django-sql-explorer and need the scripts and links all to be stored with the package for this purpose.

These were the references I found with a quick grep of the templates:

[explorer]# grep 'src="/' *
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/codemirror.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/mode/sql/sql.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/addon/comment/comment.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/floatthead/2.1.1/jquery.floatThead.min.js"></script>
base.html:    <script src="//cdnjs.cloudflare.com/ajax/libs/pivottable/2.20.0/pivot.min.js"></script>

[explorer]# grep 'href="/' *
base.html:    <link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/codemirror.min.css" rel="stylesheet" />
base.html:    <link href="//cdnjs.cloudflare.com/ajax/libs/pivottable/2.20.0/pivot.min.css" rel="stylesheet" />
fullscreen.html:    <link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
alligatorbaitcommented, Oct 15, 2020

Haha, alright. Good deal, and I’m happy to do the work, because it is less work to do it here than to eternally override/patch.

1reaction
markswebcommented, Oct 16, 2020

Excellent thanks @alligatorbait

I’ve also improved the way the app checks the blacklist so maybe we’ve got a 2.1 release already! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styling links - Learn web development | MDN
Default styles. The following example illustrates what a link will behave like by default (the CSS is enlarging and centering the text to...
Read more >
Links in HTML documents - W3C
This section introduces the link (or hyperlink, or Web link), the basic hypertext construct. A link is a connection from one Web resource...
Read more >
9 tricks to eliminate render blocking resources - LogRocket Blog
You can reduce the impact of custom fonts on initial page rendering by adding them locally rather than pulling them from a content...
Read more >
How to Link CSS to HTML Files in Web Development - Hostinger
In this detailed guide, you'll learn how to link a CSS style sheet to HTML and the many reasons why you would want...
Read more >
HTML Anchors: Here's How To Create Links For Fast ...
Search engine web crawlers associate anchor element text with the link URL. Properly selected anchor element text helps search engines determine the relevance ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found