PDA

View Full Version : Where does this code come from?


Kraxell
01-10-2021, 04:32 PM
Hey guys,

i found a problem on my site, that was caused by some lines of code in my navbar-template:


<!-- jQuery Is Required -->
<script src="/path/to/cdn/jquery.slim.min.js"></script>

<!-- Bootstrap -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/bootstrap.min.js"></script>

<!-- Bootstrap Select -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap-select.min.css" />
<script src="/path/to/cdn/bootstrap-select.min.js"></script>

<!-- Flag Icon -->
<link rel="stylesheet" href="/path/to/cdn/flag-icon.min.css" />


<!-- jQuery Is Required -->
<script src="/path/to/cdn/jquery.slim.min.js"></script>

<!-- Bootstrap -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/bootstrap.min.js"></script>

<!-- Bootstrap Select -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap-select.min.css" />
<script src="/path/to/cdn/bootstrap-select.min.js"></script>

<!-- Flag Icon -->
<link rel="stylesheet" href="/path/to/cdn/flag-icon.min.css" />

I didnt know where its from, but i dont have to say that the path cause a long loadingtime, because there is no path like that on my server. Any one have an idea, for what reason its there? I deleted it and the website runs fast af.

Greetings
Andreas

yilmaz
01-10-2021, 05:33 PM
Files of the theme you are using may not be uploaded to ftp.
Is the same in default theme?

Kraxell
01-10-2021, 05:43 PM
No, on the demo theme is also no such code. Very strange....

yilmaz
01-10-2021, 05:51 PM
No, on the demo theme is also no such code. Very strange....
If there is no FTP, it loops in vain and slows down the site.
I say take a backup of the template and delete the codes you see unnecessary.

Kraxell
01-10-2021, 05:55 PM
Yeah already did it and the site runs fine.

webmastersun
06-11-2021, 12:45 AM
Hey guys,

i found a problem on my site, that was caused by some lines of code in my navbar-template:


<!-- jQuery Is Required -->
<script src="/path/to/cdn/jquery.slim.min.js"></script>

<!-- Bootstrap -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/bootstrap.min.js"></script>

<!-- Bootstrap Select -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap-select.min.css" />
<script src="/path/to/cdn/bootstrap-select.min.js"></script>

<!-- Flag Icon -->
<link rel="stylesheet" href="/path/to/cdn/flag-icon.min.css" />


<!-- jQuery Is Required -->
<script src="/path/to/cdn/jquery.slim.min.js"></script>

<!-- Bootstrap -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/bootstrap.min.js"></script>

<!-- Bootstrap Select -->
<link rel="stylesheet" href="/path/to/cdn/bootstrap-select.min.css" />
<script src="/path/to/cdn/bootstrap-select.min.js"></script>

<!-- Flag Icon -->
<link rel="stylesheet" href="/path/to/cdn/flag-icon.min.css" />

I didnt know where its from, but i dont have to say that the path cause a long loadingtime, because there is no path like that on my server. Any one have an idea, for what reason its there? I deleted it and the website runs fast af.

Greetings
Andreas

Are you using a custom template navbar? That comes from bootstrap and I think it is a custom navigation from a theme/developer.