What to do to make Bootstrap website compatible with IE less than 8

Sanyam Khurana

Sanyam Khurana

@sanyam-Nl7Zqc Oct 26, 2024
So, I was reading lot of source code of various sites that are designed on Bootstrap3. I've come up with these three things:
  • respond.js
  • css3-mediaqueries.js
  • html5shiv
I'm having a hard time to understand what each one of them do; many people include them in combos & I'm just confused.

Please help me out.

What I need?
I need to know the difference between the three. Which one/combo would be better. Additional knowledge would be a bonus 😀

Thanks & Regards

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • batpool52!

    batpool52!

    @batpool52-bDqxi0 Dec 1, 2014

    Sanyam Khurana
    html5shiv
    It is a jQuery library that will add the elements which are not available in most old browsers like Firefox 3.x, IE6-IE9 or Safari.

    Sanyam Khurana
    respond.js
    Last I remember when I used it was for making the CSS Queries for example
    @media (max-width:{width_in_pixels}px)
    {
        .
    some_class_name_here
        
    {
            
    displaynone;
        }
    }
    Sanyam Khurana
    css3-mediaqueries.js
    Same as above.
  • Sanyam Khurana

    Sanyam Khurana

    @sanyam-Nl7Zqc Dec 1, 2014

    batpool52!
    It is a jQuery library that will add the elements which are not available in most old browsers like Firefox 3.x, IE6-IE9 or Safari.


    Last I remember when I used it was for making the CSS Queries for example
    @media (max-width:{width_in_pixels}px)
    {
        .
    some_class_name_here
        
    {
            
    displaynone;
        }
    }

    Same as above.
    So, what should be included in a Bootstrap3 website?

    html5shiv, I think should be there for sure; next I should include respond.js or css3-mediaqueries.js?
  • batpool52!

    batpool52!

    @batpool52-bDqxi0 Dec 1, 2014

    Whichever you prefer. I would go with the one which is more active in development. Though I prefer respond.js
  • Sanyam Khurana

    Sanyam Khurana

    @sanyam-Nl7Zqc Dec 1, 2014

    batpool52!
    Whichever you prefer. I would go with the one which is more active in development. Though I prefer respond.js
    Okay, thanks 😀