Laravel 5.3 How does bootstrap interpret and display items without internet

jordan

I'm still learning Laravel 5.3 and started studying it a few days ago. One tutorial project I'm following made use of Fontawesome and Bootstrap where bootstrap link and fontawesome link was included within the <head></head> tag.

So I thought that if I disconnect the internet connection, it will fail to display the icons from fontawesome since no library file was downloaded and imported to project. But I was surprised that it still was able to display the fontawesome icons.

That's when I of thought of asking this simple question since I'm a beginner with Laravel and web programming. (Java programmer)

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>@yield('title')</title>

    <!-- bootstrap link -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- fontawesome link -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">


    <!-- app.css link -->
    <link rel="stylesheet" href="{{ URL::to('css/app.css') }}">


    @yield('styles')
</head>

I read something from Laravel 5.3 documentation about the bootstrap directory that stores cached information. Is the caching the reason the fontawesome icons still displays even when it is not connected to the internet?

The Bootstrap Directory

The bootstrap directory contains files that bootstrap the framework and configure autoloading. This directory also houses a cache directory which contains framework generated files for performance optimization such as the route and services cache files.

I'd appreciate any explanation to this so I can better understand how it works.

Kyslik

Your browser has cache too. Do hard refresh / reload - in Chrome you can do this by opening inspector and then right click on refresh button and click what suits you the most.

hard-reload

Describing what is actually going on would be too long for an answer.

Good description what is going on is here.

Google search terms: browser cache, web browser cache


If you use build system (gulp) you will most likely end up with large *.css file which contains bootstrap, font-awesome definitions etc.

More on that is right in documentation.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How does an interpreter interpret the code?

How to display 3 items per row in flexbox?

How to display last query in laravel 5?

How to display Unicode character in bootstrap 3?

How does GHC interpret `foldl + 0 [1,2,3]` (without parentheses around +)?

How to select and display items in a dropdown using handlebars with bootstrap

How to display items from redux store in angular5 app?

laravel Voyager multilingual how to display items with translation in needed locale

Bootstrap 4 – How to display items in a row when navbar is collapsed?

How does justify-items work on display:block elements

How do i display my items in a row ( using php and bootstrap to display all items from a database)

Laravel + VueJs not display in Internet Explorer

WPF Compobox - how to display entire content of the two items without scrolling?

How to display filtered items without the submit button?

how to only display First 3 items in a spinner and other items by scrolling?

How Does Unix Interpret $?

How does Ruby interpret generator templates with erb without throwing an error?

How to get Bootstrap 3 Datepicker display in this picture?

How to use Bootstrap with Laravel 5?

Bootstrap - how to line up items horizontally without breaking them up?

How does expressjs serve website over bluetooth without internet?

Laravel Linkroute does not interpret HTML but outputs as text

How to create a new laravel project without internet connectivity?

How does JavaScript interpret "i"

How does R interpret this dataset?

How to display Internet explorer not supported in angular without importing pollyfills

How does the ProcessingJS link work without an internet connection?

How to center items inside a col horizontally in Bootstrap 5

How to center two columns of list items using Bootstrap 5, or CSS