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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:58:19+00:00 2026-05-23T08:58:19+00:00

I am post loading jQuery and it is causing a CSS error in Opera

  • 0

I am post loading jQuery and it is causing a CSS error in Opera (and Opera alone). I’ve created a JSFiddle to demonstrate.

Having some CSS that styles the HTML and BODY tags like:

html {
    background: #6B9AB6;
}

body {
    background: white;
    max-width: 10em;
}

Then post loading jQuery (using a simple setTimeout for demonstration purposes):

setTimeout(function(){

    var script_tag = document.createElement('script');
    script_tag.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js';

    var script_sib = document.getElementsByTagName('script')[0];
    script_sib.parentNode.insertBefore(script_tag, script_sib);

}, 2000);

Causes the correct CSS to display, then flash to an unstyled HTML tag. Using Opera’s DragonFly and changing either the background-attachment or background-origin dynamically fixes this. The same is not true if you do this programmatically.

Is there a way to make Opera behave with postloaded jQuery? Feel free to update the JSFiddle if you have any ideas.

  • 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-23T08:58:19+00:00Added an answer on May 23, 2026 at 8:58 am

    Its a regression in jQuery version 1.6; jQuery version 1.5.2 works just fine.

    For now there is a patch by Aderty:

    The bug can be resolved on ligne [line number] 1288 from jquery-1.6.1.js.

    Replace :

    “documentElement.insertBefore( body, documentElement.firstChild );”

    by

    “documentElement.appendChild( body );”

    which works wonders if you are self-hosting the library.

    EDIT: Version 1.6.2 has a fix for this issue (currently in jQuery’s GIT repo).

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

Sidebar

Related Questions

I'am loading html with some inline javascript on a $.post callback. Something like that
I have a SELECT object and I'm populating it with AJAX(JQUERY). $(#setor).change(function(){ $(#loading).css(display, inline-block);
i have jquery thick box, and it is loading on clicking some link. Then
For some reason, jQuery isn't loading my php file. The button is clicked and
The Solution: http://noteslog.com/post/how-to-fix-the-resize-event-in-ie/ Development Issue: I am having an IE7 compatibility issue with jQuery.
I am having issues loading a jQuery modal window upon submit. I want a
I'm implementing a Blog with Post and votable Comments. When loading a Post, I
$('a').click(function(event){ $('body').html('loading...'); $.post('www.sitename.com/hello',{site:http//:www.google.com},function(data) { alert(data); }); event.preventDefault(); }); I am using the above script
First post, so here goes. I'm writing a script that does intelligent search and
I'm loading the search results via jQuery ajax in a div container. I would

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.