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 6202357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:43:11+00:00 2026-05-24T04:43:11+00:00

jQuery is a good choice to write the CSS code for IE-browsers or not?

  • 0

jQuery is a good choice to write the CSS code for IE-browsers or not? Many times I am facing with this problem. Sometimes it is so difficult to understand how to rewrite the code for all browsers including IE, sometimes I use jQuery to change the small pieces of code, but there is a problem, if user’s internet bandwidth is weak, jQuery loads the CSS after the page is fully loaded, it is always like this, and the new users can do their bad impression about the site, and so on. Well, any advices to improve this?

  • 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-05-24T04:43:12+00:00Added an answer on May 24, 2026 at 4:43 am

    jQuery loads the CSS after the page is fully loaded

    jQuery should not be responsible for loading all your CSS. Hopefully this is not what you meant.

    However, if you are talking about the flash of ugliness that can appear before all the javascript is done executing, one technique is to write specific CSS for you users without javascript. The idea is basically this:

    <html class="no-js">
    

    Then when jQuery loads, immediately call something like this:

    $('html').removeClass('no-js').addClass('js');
    

    Then you can use this selector in CSS to target elements when jQuery is or is not loaded or enabled.

    .my-widget {
        /* default style */
    }
    .js .my-widget {
        /* style with javascript */
    }
    .no-js .my-widget {
        /* style without javascript */
    }
    

    Taken from the HTML5Boilerplate docs (one place this technique is used):

    I prefer writing explicit styles for the user without JavaScript. Most
    of my sites expect JavaScript so that would mean prefixing a good 60%
    of my CSS selectors with .js. Alternatively I can have a few targeted
    .no-js overrides and tackle that case. More here:
    http://paulirish.com/2009/avoiding-the-fouc-v3/ and
    http://paulirish.com/2009/avoiding-the-fouc-v3/#comment-34951

    In general though, try to make sure everything looks good without javascript, and use js for enhancements.

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

Sidebar

Related Questions

I am looking for some good jQuery, XHTML & CSS code to achieve the
my jQuery skills are pretty good normally but this is driving me mad! It's
I'm looking for a good jQuery or CSS, or combo, library to enance my
I am looking for a good jQuery plugin for this case. A page shows
Is there a good jQuery Drag-and-drop file upload plugin? Not images... i am looking
Possible Duplicate: What is a good jQuery/Ajax lightbox plugin? I'm not an JavaScript guy,
What are some good jQuery Resources along with some gotchas when using it with
Do you know some good jQuery popup dialog plugins? Thanks.
I am looking for a good jQuery pagination plugin to use in my aspx
I'm looking for a good jQuery plugin that allows HTML5 video playback, with graceful

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.