Tuesday, December 06, 2011

How Google is quietly killing Firefox



After a certain period of time spent programming, you develop a kind of sixth sense about what programs are doing. Surprisingly often, this sixth sense turns out to be right. I don't know if what I'm about to say is right. I do know that my sixth sense is telling me something.

I've been a Firefox user for years, and I still like Firefox, the way I still like my 1998 Jeep Grand Cherokee (with the cast-iron six-cylinder engine) even though it's not the latest-and-greatest model. Lately, though, Firefox has been freezing and/or quitting unexpectedly with greater and greater frequency, even though my browsing habits haven't changed.

What's changed over the past couple of years? The Web. Web content has become more and more dynamic, more AJAX-driven, more JavaScript-intensive.

JavaScript is a great language, but like a lot of languages these days it relies on programmers being careful about how they manage runtime objects. It's surprisingly easy, if you manipulate the DOM a lot, to generate code that leaks memory. See this nice writeup for more info (also see https://developer.mozilla.org/en/Debugging_memory_leaks).

My contention is that most AJAX code leaks memory like a sieve, and this is why more and more users are seeing their browsers (not just Firefox, but IE, Safari, and Chrome as well) freeze up and die in normal operation these days. The various browsers differ in how they manage memory and how they do garbage collection. Chrome, in particular, has undergone significant changes recently in how it handles garbage collection. This is no accident. It's in response to the greater challenges imposed on all browsers today by dynamic web pages.

When I leave AJAX-intensive web pages open all day in Firefox, I eventually find that Firefox is using 1.3 gigabytes or more of RAM. Usually, by the time it reaches 1.4 gigabytes, the browser freezes (goes white) and then either dies outright, or unfreezes again after 30 or 40 seconds. If it manages to unfreeze, usually about 60 megabytes of RAM have been freed up (according to Task Manager). But then memory usage marches upwards again and it freezes (goes white) again, within seconds. The freeze/unfreeze cycle continues until Firefox unceremoniously crashes.

My programmer's sixth sense tells me that when memory usage exceeds a certain level, Firefox lacks sufficient headroom to carry out a proper garbage collection cycle. Partway through the cycle, it runs out of memory and initiates another GC cycle. This repeats until the program is in what one might call a GC panic. Uncommanded program termination is the inevitable result.

Firefox is often roundly criticized for its tendency to "leak memory," but I would caution that it is not really the core program that is leaking memory. It's really the AJAX code running in JavaScript-intensive pages that's causing the memory leakage.

So ironically, Firefox's reputation is suffering not because of anything Mozilla's programmers are doing, but because of web developers who are using jQuery and tons of other popular libraries indiscriminately, without regard to memory leakage. (Be sure to have a look at this blog post about jQuery's role in memory leakage.)

I haven't done careful testing, but I can tell you (from daily experience) that if I leave Gmail open in Firefox all night, Firefox will run out of memory by morning. If I leave Facebook and Twitter open as well, I can count on running out of memory in just a few hours.

Now here's where it starts to get really troubling.

Mozilla's greatest revenue source today (accounting for more than 80 percent of annual income) is Google. Mozilla is deeply dependent on Google for operating revenue. And yet, it is in direct competition with Google for browser market-share. Recently, the Firefox and Chrome adoption curves crossed, with Firefox now lagging behind Chrome for the first time.

There's a huge conflict of interest here. If you buy the theory that most people who abandon Firefox do so because it crashes (runs out of memory) unpredictably, it stands to reason that all Google has to do to pick up market share in the browser world is publish AJAX-intensive web pages (Google Search, Gmail, Google Maps, etc.) of a kind that Firefox's garbage-collection algorithms choke on — and in the meantime, improve Chrome's own GC algorithms to better handle just those sorts of pages.

That's exactly what seems to be going on. Or at least that's what my gut says.

And my gut is sometimes right.

53 comments:

  1. Anonymous11:03 PM

    i am leving forefox because google has help steal my info and i will not use google and firefox is going to make it the main set so good by firefox

    ReplyDelete
    Replies
    1. Anonymous1:33 AM

      Well said.

      Delete
    2. Anonymous5:23 PM

      I couldn't agree more

      Delete
    3. Anonymous12:08 AM

      Lol are you guys serious? That was incredibly poorly said. I can't even understand whether he's advocating "forefox" or chrome!

      Delete
    4. Anonymous11:02 PM

      Well done!!

      Delete
  2. Anonymous3:23 PM

    It's sad, but true that google is intentionally slowing down Firefox on their products. Firefox runs fine even if i leave it on for days, until i pop out google calendars or gmail of course. Within an hour, Firefox's performance becomes unbearable.

    I have "somewhat" fixed this by using Chrome for gmail and Firefox for anything else. I have become a master of shortcuts, switching between the two browsers.

    ReplyDelete
  3. Anonymous11:00 AM

    Well, your sixth sense is right. My firefox crashes only using google maps. Firefox runs smooth, otherwise.

    ReplyDelete
    Replies
    1. Anonymous9:12 PM

      The same is true in my case. It's sad. Google Chrome is so deeply stealing the privacy of its users and that's why I don't want to use it. But Google is killing Firefox.

      Delete
  4. Anonymous11:38 AM

    Yes, Gmail is currently running all kinds of scripts that are causing Firefox to hang up. I believe it is deliberate to force us to use the Chrome browser for their apps. However, as Google continues to not follow W3C standards, they are following the practices of Internet Exploder in which only their own browser is friendly to their apps and pages.

    ReplyDelete
  5. Exactly. Google sites- non browser- either freeze or close to that. My own blog is unavailable to me on Mozilla after working fine for a year ..freezes solid now. A little better on Chrome. But I did notice...when Chrome gets a bug..it effects Mozilla.Twice when I hit the Chrome icon,Mozilla began to load also. I had to do a system restore to LONG ago- lol,to get back to near normal on Mozilla.

    ReplyDelete
  6. Anonymous6:48 PM

    This comment has been removed by a blog administrator.

    ReplyDelete
  7. Firefox is a great, free browser. But you can make it even better and more versatile by adding Extensions. This article explains what Extensions are, suggests four Extensions you might want to add to your browser, and describes the installation process. Search Bar Firefox 57 Quantum addon

    ReplyDelete
  8. Our essay Research Writing Service in the mission to ensure clients are satisfied has ensured access to customer service 24/7 meant to address all issues relating to custom term papers and Buy Essay Writing Service offered by the company.

    ReplyDelete
  9. Such a nice blog Thanks for sharing information Firefox keeps crashing

    ReplyDelete
  10. Looking great and it is very helpful content you can read my content here It is really helpful article please read it too my blog FIREFOX KEEPS CRASHING.


    ReplyDelete
  11. Thanks for sharing such a good content with your blogs. I really enjoying your blog while reading. if you need any kind of information FIREFOX KEEPS CRASHING.

    ReplyDelete

  12. شركة نقل عفش
    اهم شركات مكافحة حشرات بالخبر كذلك معرض اهم شركة مكافحة حشرات بالدمام والخبر والجبيل والخبر والاحساء والقطيف كذلك شركة رش حشرات بالدمام ومكافحة الحشرات بالخبر
    شركة مكافحة حشرات بالدمام
    شركة تنظيف خزانات بجدة الجوهرة من افضل شركات تنظيف الخزانات بجدة حيث ان تنظيف خزانات بجدة يحتاج الى مهارة فى كيفية غسيل وتنظيف الخزانات الكبيرة والصغيرة بجدة على ايدى متخصصين فى تنظيف الخزانات بجدة
    شركة تنظيف خزانات بجدة
    شركة كشف تسربات المياه بالدمام
    شركة نقل عفش واثاث

    ReplyDelete
  13. Packers and Movers Bangalore - Reliable and Verified Household Shifting Service Providers Give Reasonable ###Packers and Movers Charges. Cheap and Best Office Relocation Compare Quotation for Assurance for Local and Domestic House Shifting and Get estimates today to save upto 20%, ***Read Customer Reviews - @ Packers And Movers Bangalore

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. When a user tries to use the QuickBooks payroll tool, Quickbooks error 15241 is a common issue. When a user installs software upgrades, this type of error can also occur.

    ReplyDelete
  16. Thanks for this post. It was written and prsented very well. The quickbooks tool hub is an amazing tool that resolves all the errors related to quickbooks

    ReplyDelete
  17. Most likely, QuickBooks is the main bookkeeping programming as it deals with all the monetary data of a client and assists them with making solicitations, accounting reports, and bills productively, however it very well may be sickening to get an organization document blunder in QuickBooks as it contains all the critical data of a business quickbooks error code -6175, 0

    ReplyDelete
  18. When a user tries to open a file saved in the software, Quickbooks error 6175 appears. This could also occur if the Error is unable to interpret QB database services. These are the files that aid in
    the hosting of the computer used in the process.

    ReplyDelete
  19. All set to download, setup, or update QuickBooks database server manager? But, hang on! Do you know what all it takes to download, setup and update it? Need not to panic, we have got you covered. quickbooks database manager is also named as Intuit personal database manager tool.

    Also read :- quickbooks data extraction tools OR quickbooks error 324

    ReplyDelete
  20. installturbotax com the entire process of filing tax returns so smoothly that one can easily do it from the comfort of their home.

    ReplyDelete
  21. Thanks for the blog its really informatic and helpfull quickbooks error h505 appear when the user tries to get the company files or data on another computer & that computer does not have proper establishment setup or the computer require additional installation or setup. The H series errors are related to the hosting settings problems.And there Have lots of Quickbooks error solution Like quickbooks database server manager Or quickbooks error 1712 You have also the problem please click the links.

    ReplyDelete

  22. It’s really nice and meaningful. It’s really cool blog. Thanks for sharing and please update some more information here. Students need to gain relevant ideas about the Courses after 12th. The changing time has provided various career segments through which they can see their future. However, a substantial decision can be taken by evaluating one's own likings towards the career field. Students can select the courses after completing their 12th as per the subject they had taken in the 12th itself from a career point of view.

    ReplyDelete
  23. Hi, I am Sofi Hayat, I am working as a tech expert at Yahoo support. I have 3 years of experience in this field. you have any problems related to Yahoo help, etc, then please contact me for instant help related to Yahoo email problems.

    ReplyDelete
  24. Turbo.net, the official website of Turbo, hosts applications that can be launched via the web with no install turbotax application library includes popular software like Chrome, Skype, VLC Media Player, SketchUp, and hundreds of other top free and open-source applications.Turbo works through a small browser plugin with no administrative privileges or drivers required

    ReplyDelete
  25. Nice Blog.
    Quickbooks Error Code 6123 The error message that appears with this error code states that “Problem connecting to Server”. When you are opening a company file over a network or multi-user mode you may see the error -6123, 0 message on your computer screen: QuickBooks Error -6123, 0

    ReplyDelete
  26. This article is so innovative and well constructed I got lot of information from this post. Keep writing related to the topics on your site.
    ดาวน์โหลด igoal

    ReplyDelete
  27. QuickBooks is among the popular software used for accounting and bookkeeping. QuickBooks provides you with a feature of direct deposit quickbooks file types to pay to your employees. It will allow you to transfer money to the direct bank accounts immediately or most probably within 2-3 days. In case you are already using the QuickBooks payroll service then you can change the bank account to the other bank account to set up the qb direct deposit form and you check also quickbooks error 6094

    ReplyDelete
  28. QuickBooks Error 6000 83 or notifications happen when the QuickBooks data is damaged or the company file can't be read correctly by QuickBooks. To resolve these errors, you can start by installing the QuickBooks Tool Hub
    and fix the file from there.

    ReplyDelete
  29. how To unmatch a transaction in QuickBooks online there are two ways To know the process of how to unmatch a transaction in QuickBooks online read the blog To Know more and check also How To Track Mileage in QuickBooks Online or gear icon in QuickBooks

    ReplyDelete
  30. Having issues with your favorite QuickBooks Pro, Premier or Enterprise edition? If yes, then QuickBooks file doctor is the go-to tool that you will need for troubleshooting your financial software. to know more click the link And Read Also QuickBooks Remote Access Tool
    Or quickbooks print and pdf repair tool

    ReplyDelete
  31. How to Fix QuickBooks Payroll Error PS034?
    In this Blog You can learn about QuickBooks Payroll Error PS034 encounter while updating QuickBooks Payroll or downloading Payroll Updates ,

    ReplyDelete
  32. QuickBooks Desktop Error 6000 77. Possible quick fixes: Re-launching QuickBooks Desktop with elevated permissions may resolve the issue. Right-click the QuickBooks Desktop icon on your desktop and select Run as Administrator.

    ReplyDelete
  33. Take control of your finances with our award-winning cloud sage software accounting for small businesses and sole traders. Sign up for your free trial now.

    ReplyDelete
  34. Thank you for sharing such an educative article. We'll recommend it to our audience, who are mainly students asking - who can write my term paper for me online.

    ReplyDelete
  35. How to Use QuickBooks Time Tracking | QuickBooks provides an all-in-one time tracking solution and offers easy, accurate time tracking insight. Some of the highlights of QuickBooks' time tracking solution include the abilities to: Track, submit, and approve employee time on the go. Monitor overtime and paid time off (PTO) with alerts || Hii Guys in my blog we provide a complete Guide Of use setup and errors solution have an any issue related of Quickbooks please click the you can get the pro-advisores 24*7 Helpline Numbes

    ReplyDelete
  36. The QuickBooks unrecoverable error code is indicated when you open the company file or while clicking on save, print, or ship icon. These minor errors do not indicate that anything incorrect has been saved on the computer. It can be solved by closing the software application and opening it again. The QuickBooks unrecoverable error shows up when you are using the accounting software. These error codes prompt users with a recording by itself or throw some other critical errors. The numbers in QuickBooks unrecoverable error indicate where the error lies in the program. The QuickBooks unrecoverable error is nothing to worry about. All you need to do is to go through the step by step instructions and resolve them. This can be done by taking help from the QuickBooks technical support. For additional information, visit us at www.quickbooks-intuit.ca. QuickBooks accounting software is one of the most popular platforms by Intuit.QB unrecoverable error is also prone to errors and difficulties, due to which the company has introduced error codes. If you get any of these errors while working on your accounting software, make sure to check the following steps to fix them.

    ReplyDelete
  37. Sage 50 Support Phone Number — Sage 50 is accounting software that is used by most of the small and medium industries for their bookkeeping requirements.
    The trained professionals can fix your software trouble in a few minutes, by just dialing Sage 100 Support Phone Number +1-8855-377-2733. Frequently Asked Questions.
    Sage 200 Support Phone Number uses the power and productivity of the desktop, with the freedom and control of smart, secure software. You can also collaborate with your teams in real-time.
    Sage 300 Support Phone Number is uniquely positioned to help your company grow. Flexible deployment options make implementation a breeze, so you can start easily managing your accounting, operations, and distribution processes in no time.
    Sage Error Support Phone Number 1855 377 2733. To resolve all Sage 50 errors let you find the fastest way to get connected with a Sage expert.

    ReplyDelete
  38. That is an unbelievable idea you have, and yes this would use the information you have given us through this blog.
    A handful of things that are required to be taken care of after someone has converted from QuickBooks Desktop to Online. This is why in this article, we are going to talk about all the important as well as optional things that you should do once the conversion is done.
    quickbook 2013 windows 10 | login qb online

    ReplyDelete
  39. Sage Fixed Assets Support Number gives you the flexibility to manage and optimize your fixed assets throughout their useful life. Learn how our powerful depreciation calculation engine and intuitive reporting simplify asset management and accounting across your business.
    Sage provides a Sage Payroll Support Number service for all Sage payroll systems, with over 350 technical advisors all trained to support Sage software.
    You can contact a Timeslips certified consultant or Sage Timeslips Support Number person, who might be able to help you correct the corruption.
    Sage Online Support Number One is a family of online accounting and business services for small businesses. Choose your country to get started.

    ReplyDelete
  40. When there are multiple users set up for the file the Login prompt asks for both a user name for a password: In both cases, the special Admin user name is very likely “Admin”, unless someone when to the trouble of QB Admin Password crack. My Computer Guy uses brute force techniques to find out the password for QuickBooks admin. A number of methods are used to determine possible passwords and then the program attempts them. The guessing takes about 5-10 minutes depending on how many letters and characters you want to include in your password.

    My Computer Guy uses brute force techniques to find out the password for QuickBooks Admin Password crack. A number of methods are used to determine possible passwords and then the program attempts them. The guessing takes about 5-10 minutes depending on how many letters and characters you want to include in your password.

    Crack QuickBooks Admin Password is a small tool to help you change the password of the QuickBooks administrator. For best results: 1) Select the Admin user (if there are multiple users). 2) Run the application and enter your old password. 3) Enter a new password that meets the requirements. 4) Click CHANGE PASSWORD.

    ReplyDelete
  41. We will illuminate you pretty much every one of the causes and investigating steps to determine the QuickBooks Error Code C=272. As we as a whole realize that QuickBooks is the most refined and downloaded monetary administration programming out there to manage organization information in a coordinated way of behaving.

    You may also read: Resolve QuickBooks Payroll Error 30114

    ReplyDelete
  42. There can be a couple of factors causing the QuickBooks error code 6123, 0 issue that are discussed later in this post. Thus, make sure you read this post carefully till the end. Moreover, you can ring up to our professionals and let them fix the error for you. Moreover, if you feel the need of technical assistance at any point of time, then we recommend you to get in touch with our QuickBooks enterprise technical support professionals at 1.800.761.1787. Our experts will be happy to help you.

    ReplyDelete
  43. Government of the People’s Republic of Bangladesh, Directorate of Primary Education (DPE), is going to announce PSC Result 2022 in DPE Result student wide on 30th December 2022 for all divisional Grade 5 exam result with Ebtedayee Result 2022 for annual final terminal examinations, The Primary School Certificate Examination Result 2022 will be announced for both of General and Madhrsah students in division wise to all education board known as Prathomik Somaponi Result 2022.

    ReplyDelete
  44. This blog is more informative and user friendly Thank you. QuickBooks Connection Diagnostic Tool is designed to fix several network connection errors that occur in QuickBooks desktop. The tool finds the various errors including "File not found", "Connection timed out" and many more. It has a simple interface that makes it easier to use by both new and experienced users.

    ReplyDelete

Add a comment. Registration required because trolls.