Code Monkey home page Code Monkey logo

Comments (5)

gwarser avatar gwarser commented on June 12, 2024

I give up... Sometimes Opera breaks on XMLHttpRequest and broken response is cached. Refreshing, reloading, ctrl+reloading not work... Only option is to clear cache and be lucky on next reload.

from autopatchwork-mod.

Dither avatar Dither commented on June 12, 2024

Is 82374ba17277fe424c1182c2c728ba6e76b52dfc changing something?

from autopatchwork-mod.

gwarser avatar gwarser commented on June 12, 2024

Oh my gosh... 🤦 This bug is not XHR related - it's my haste. On my gsm/edge connection (+download in background) it takes long time to download this file (more than a minute).

When I see empty page for so long - I close it. JavaScript run in page thread, so when page is closed XHR is interrupted and incomplete response saved in (session) cache. Next time file is loaded from cache and JSON throw exception... During debugging I always wait for an answer, so there is no error.

Solutions:

  • restart browser (empty session cache) and next time wait longer :) or
  • put some spinning animation in the middle of the page (and big "loading" warning) or
  • append some random string to url to override cache (in case of error only! - don't want to always load this large file) or
  • move XHR to background process (survive closed page) or
  • ?

from autopatchwork-mod.

Dither avatar Dither commented on June 12, 2024

There is actually animation in place. It's just not running for initial download now. Will do when my mood will be right. :)

In general I am thinking to make extension to always keep the full DB version offline so manager load will be instant. But as my research suggest full database is 3x as big and is prone to corruption if Opera exited incorrectly. Don't know how to do it better.

By the way if aborted XHR request data is still cached this looks more like an Opera caching system bug to me so maybe it's sensible to report it.

from autopatchwork-mod.

gwarser avatar gwarser commented on June 12, 2024

This happens to me often. Particularly annoying for css sprites (high cpu usage). I hope new "force reload" command helps to fight this. (although it does not work for XHR)

from autopatchwork-mod.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.