0

This is not a question about how to turn on incognito/private mode on a browser, but rather what kinds of things are turned on or off by browsers when that mode is entered, and whether those things can be done dynamically with (presumably) client-side code on the site itself.

I ask because, reason unknown, my site runs faster in incognito/private mode than otherwise. The difference in speed is greatest in IE, which runs at a snail's pace normally, but is faster than all other browsers when my site is executed in its InPrivate viewing mode.

My site involves complex database queries for text and image retrieval from the server, things I wouldn't ordinarily think would be sped up by incognito mode; thus, I'm looking for (1) listings of the various things that browsers do when opened in that mode, and (2) what can be done code-wise (if at all) to effect those conditions when my site executes on a client's browser.

Tom
  • 1,836
  • 4
  • 16
  • 30

1 Answers1

1

"Is it possible to create incognito/private mode dynamically with code?"

No it's not.

You can't prevent the browser from storing your navigation / download history, cache, and whatever else isn't stored in incognito mode.

JavaScript simply doesn't have that kind of access.

Instead of working around the problem by "forcing" incognito mode like this, it may be more productive, in the long run, to determine what's causing the site to run so slowly.

Cerbrus
  • 70,800
  • 18
  • 132
  • 147
  • You misunderstand me. As I wrote, I'm trying to discover what things are being turned on or off within the browser by the browser in incognito mode. Those things would most likely point at what causes the speed increase, most especially in IE, although it is slightly faster in the other browsers. The site isn't running slowly; it's running at an acceptable speed, except for certain routines while on IE, and then except in its InPrivate mode, in which case the change in speed is dramatic. If you can contribute what those things are--in IE--they would help provide clues as to what's happening. – Tom Oct 23 '15 at 14:59