Re: PIE causes duplicate downloads on files
I was able to determine with some testing that IE loads pie.htc and executes the init() function on 'oncontentready' or 'ondocumentready' events. However, the file contents are not cached by IE during initialization. Later other functions are separately loaded as needed, resulting in multiple pie.htc downloads.THE FIX:
I was able to fix the problem by coercing IE into preloading the full pie.htc file prior to stylesheet loading in the web page header, like this:
<link href="/path to/pie.htc" rel="stylesheet" type="text/css" />
<link href="/path to/style.css " rel="stylesheet" type="text/css" />
Note that it is necessary to lie to IE about the pie.htc data type being "text/css". Type="text/x-component" will not work. Neither will type="text". IE must "think" pie.htc is a stylesheet for the trick to work.
That simple fix causes IE to load pie.htc only once.