I have IE9 installed on my Windows 7 machine.
- Using this version of IE, when I view my local HTML page containing
jqPlot graphs, everything is responsive (graph rendering and zooming
are very quick). - If I set the browser’s Browser Mode (F12 -> Browser Mode) to IE7 or
IE8, the page becomes dramatically unresponsive (expected).
I’m currently working on an MFC application using VC++ 2008. The application defines IE7 as its minimum required platform as follows:
In targetver.h
...
#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0.
#define _WIN32_IE 0x0700 // Change this to the appropriate value to target other versions of IE.
#endif
What I’d like to do is to target IE9 instead because when the application navigates to my local HTML page, any operations done to the page are very slow (like case 2 above).
Does anybody know how to do that? I’ve tried setting “_WIN32_IE” to “0x0900” but that doesn’t seem to make any difference. Are there any settings I need to change?
Update:
Adding
to the head section of my HTML file does seem to improve the overall performance.
I’ve done some speed tests around the piece of JavaScript code that takes most time:
Before adding the meta tag
After adding the meta tag
With standalone IE9
394 ms isn’t too bad.
Thanks for the pointer!