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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:17:48+00:00 2026-05-29T11:17:48+00:00

I’m developing a complex website that heavily leverages jQuery and a number of scripts.

  • 0

I’m developing a complex website that heavily leverages jQuery and a number of scripts. On load of the site, none of my scripting is working (though I can confirm that other scripts are functioning fine). I wouldn’t be posting such a lame question here on SE except for one thing:

The instant I hit F12 to turn on developer tools so I can debug my issue, everything instantly works perfectly!

Worse, if I shut down the browser, start it up, turn on Dev Tools first and visit the site, everything works as expected.

So I can’t even debug the darned problem because Dev Tools fixes it! What could Dev Tools be doing that makes things work? Does it change the UA (I do some jQuery.browser detection)? Does it do something to doctype?

EDIT

All my console logging is wrapped in the following wrapper utility function:

   function log(msg){
    if (console){
        console.log(msg);
    }
   }

Any thoughts or suggestions I could try would be welcome. I’ll post here if I find a solution.

  • 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-29T11:17:49+00:00Added an answer on May 29, 2026 at 11:17 am

    I appreciate I’m pretty late to the party here, but I’ve got a solution for IE9 that’s a little different.

    (function() {
        var temp_log = [];
        function log() {
            if (console && console.log) {
                for (var i = 0; i < temp_log.length; i++) {
                    console.log.call(window, temp_log[i]);
                }
                console.log.call(window, arguments);
            } else {
                temp_log.push(arguments);
            }
        }
    })();
    

    Basically instead of console.log you use log. If console.log exists then it works as normal, otherwise it stores log entries in an array and outputs them on the next log where the console is available.

    It would be nice if it pushed the data as soon as the console is available, but this is less expensive than setting up a custom setInterval listener.

    Updated function (1 October 2012)

    I’ve updated this script for my own use and thought I’d share it. It has a few worthy improvements:

    • use console.log() like normal, i.e. no longer need to use non-standard log()
    • supports multiple arguments, e.g. console.log('foo', 'bar')
    • you can also use console.error, console.warn and console.info (though outputs them as console.log)
    • script checks for native console every 1000ms and outputs the buffer when found

    I think with these improvements, this has become a pretty solid shim for IE9. Check out the GitHub repo here.

    if (!window.console) (function() {
    
        var __console, Console;
    
        Console = function() {
            var check = setInterval(function() {
                var f;
                if (window.console && console.log && !console.__buffer) {
                    clearInterval(check);
                    f = (Function.prototype.bind) ? Function.prototype.bind.call(console.log, console) : console.log;
                    for (var i = 0; i < __console.__buffer.length; i++) f.apply(console, __console.__buffer[i]);
                }
            }, 1000); 
    
            function log() {
                this.__buffer.push(arguments);
            }
    
            this.log = log;
            this.error = log;
            this.warn = log;
            this.info = log;
            this.__buffer = [];
        };
    
        __console = window.console = new Console();
    })();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the

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.