r/csshelp • u/Tagina_Vickler • Nov 20 '20
Bootstrap spinners not working
Hi all,
I'm learning bootstrap, and have copied the most basic code for a spinner from their documentation:
inside the <head> tag I import dependencies:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
and in the <body> tag I implement the spinner:
<div class="spinner-border" role="status"
<span class="sr-only"></span>
</div>
And I'm greeted only with a blank screen. I have no idea why this is happening, as other modules are working fine ( carousel, drop-down menus, etc.). I'm sure the framework files I'm importing are directing to the correct path, and the browser logs show no errors.
Help me please ;(
EDIT: Figured it out, I was using an old version of bootstrap (I know, I'm a noob). Was using 3.something whereas I now use 4.5.3 and it works .
1
u/FriesWithThat Nov 20 '20
Could it perhaps be working, but just so fast because of your light local page load that you don't see it? Try dev tools > network > online and give it some throttling.