Y
Y
Yuri Kucherenko2015-07-28 01:36:52
css
Yuri Kucherenko, 2015-07-28 01:36:52

Why doesn't Chrome include Jquery + Font Awesome?

Hello everyone, the problem is this - I work in the Brackets editor, I launch live preview, everything works fine, it’s not even worth saying, I upload it to the hosting - everything is the same as in brackets, everything is connected and as it should be. But as soon as I open index.html with the help of chrome to work in the sublime, incomprehensible nonsense is created .. Namely, chrome refuses to load jquery (connected from Google) and font-awesome icons from Bootstrap, I make a screen (icon disappeared) with the inspector, it is there because it is written in HTML, but in fact it is not, because font-awesome is not connected fe0768bd3aaa4a8692df0c366b8c0847.png
PHOTO 2 - This is what chrome itself writes by mistake efd2423f607a4afb8b96fc1115a36026.png
Here's howthis project looks and works fine on my host, I didn’t change anything, I just took the project folder and opened index.html in the browser, it works fine through live-preview Brackets and displays everything.
I regularly clean the cache, ADBlock cut down.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Misha Vasilyev, 2015-07-28
@litlleidiot

you connect like this

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
...
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>

at the same time, the browser replaces // with the protocol by which you opened the site. This is usually done so that both http:// and https:// work. If you open this file "by the server", then the path to it in the address bar is file://path to the file/index.html. The browser replaces // with protocol and tries to load file://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css and file://code.jquery.com/jquery-1.11 .3.min.js, which, of course, are not at this address.

A
Alastor, 2015-07-28
@Alastor

I'm fine with the link.
brackets is also integrated into browsers and after saving it will immediately refresh the page.
so try to turn off the brackets and look at the page again

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question