Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9275437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:35:13+00:00 2026-06-18T16:35:13+00:00

I am using Modernizr to check for features, namely csscolumns, and running Modernizr.load() in

  • 0

I am using Modernizr to check for features, namely csscolumns, and running Modernizr.load() in order to use the css3-multi-column.js polyfill if this feature isn’t available. This all works pretty fine, apart from the fact that Modernizr/yepnope inserts the script just before the Modernizr script element and also before my stylesheets. Since css3-multi-column.js has to be included after all the stylesheets I would prefer if Modernizr added the script to the end of the page. Is that possible?

This is my code:

Modernizr.load({
    test: Modernizr.csscolumns,
    nope: 'http://host.org/js/libs/css3-multi-column.js';
});

This is what I would like to accomplish with Modernizr, if possible:

if (!Modernizr.csscolumns) {
    var script = document.createElement( 'script' );
    script.type = "text/javascript";
    script.src = 'http://host.org/js/libs/css3-multi-column.js';
    $('body').append(script);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:35:15+00:00Added an answer on June 18, 2026 at 4:35 pm

    I just stumble on the same problem and took a look at the Modernizr (yepnope.js) code and that’s definitely not possible to add the script at the page end.

    So, unfortunately, your solution is the good one.

    Another possible solution is to put Modernizr at the bottom of the page (but IE8 will break, see the bottom note here)?

    Also, in my case, all my stylesheets were before the css3-multi-column.js script inserted by Modernizr but it was not working either. But using your method fix the problem. With your method it works also when appending to HEAD. So the problem is not with the place where the script is inserted but something else?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started using HTML5, starting from the HTML5 Boilerplate . This includes modernizr, which
Dropdownlist on my MVC4 application using modernizr 2.6.1 running on IE9 shows unexpected behavior.
I've been struggling to make a coherent mixin for this issue. I'm using modernizr.js
I'm loading my javascript files using Modernizr.load() . Now lets say each page needs
This is css to use CSS3 PIE border: 1px solid #696; padding: 60px 0;
I have implemented this code: <script> var mod_PPfix = false; Modernizr.load({ test: Modernizr.csstransitions &&
What are the possible checks can be made to detect firefox features using modernizr?
I'm trying to load a dynamically generated Google Font stylesheet using Modernizr (YepNope) but
How do I check for FormData object using Modernizr and YepNope ? <script> yepnope({
I am using the Modernizr.load() method to test, whether the browser (ie) understands media

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.