Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

modernizr

should Modernizr file be placed in head?

March 19, 2023 by Tarik

If you want Modernizr to download and execute as soon as possible to prevent a FOUC, put it in the <head> From their installation guide: Drop the script tags in the <head> of your HTML. For best performance, you should have them follow after your stylesheet references. The reason we recommend placing Modernizr in the … Read more

Categories javascript Tags html-head, javascript, modernizr Leave a comment

Correct way to use Modernizr to detect IE?

January 29, 2023 by Tarik

Modernizr doesn’t detect browsers as such, it detects which feature and capability are present and this is the whole jist of what it’s trying to do. You could try hooking in a simple detection script like this and then using it to make your choice. I’ve included Version Detection as well just in case that’s … Read more

Categories html Tags cross-browser, html, modernizr Leave a comment

HTML5shiv vs Dean Edwards IE7-js vs Modernizr – which to choose?

December 27, 2022 by Tarik

No, they’re not the same at all; they do completely different things. html5shiv allows you to use the new HTML5 tags in versions of IE that don’t understand them. Without it, IE will choke on these tags, so you need this if you intend to use the tags. Don’t expect it to make the tags … Read more

Categories html Tags html, modernizr Leave a comment

What is the purpose of the HTML “no-js” class?

September 13, 2022 by Tarik

When Modernizr runs, it removes the “no-js” class and replaces it with “js”. This is a way to apply different CSS rules depending on whether or not Javascript support is enabled. See Modernizer’s source code.

Categories javascript Tags html, html5boilerplate, javascript, modernizr Leave a comment
Newer posts
← Previous Page1 Page2

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa