Print Preview bug: scripts are downloaded even though they are not executed, thus a slow server/response can slow printing

Won’t fix Issue #563229

Details

Created
Jun 30, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

URL: http://frdako.com/iebug/index.html
loads a page with the following HTML:

<html><head>
<script language="javascript" type="text/javascript">
(function() {
var scriptTag = document.createElement(‘script’);
scriptTag.type = 'text/javascript’;
scriptTag.async = true;
scriptTag.src = '//frdako.com/iebug/index.js’;
var head = document.getElementsByTagName(‘head’)[0];
head.parentNode.insertBefore(scriptTag, head);
})();
</script>
</head><body>
<div>Hello world from HTML</div>
</body></html>

In IE a PrintPreview will cause an approx 20 secs delay before Preview is shown.
Using IE Developer Tools we observe that request for the external JS file is pending for the same amount of time as we experience the PrintPreview from no loading.
(see attachment)

WORK-AROUND:
Replacing the protocol relative url with the way how Google detects protocol fixes the long delay.

URL: http://frdako.com/iebug/index-fixed.html
loads a page with the following HTML:

<html><head>
<script language="javascript" type="text/javascript">
(function() {
var scriptTag = document.createElement(‘script’);
scriptTag.type = 'text/javascript’;
scriptTag.async = true;
scriptTag.src = (‘https:’ == document.location.protocol ? ‘https:’ : ‘http:’) + '//frdako.com/iebug/index.js’;
var head = document.getElementsByTagName(‘head’)[0];
head.parentNode.insertBefore(scriptTag, head);
})();
</script>
</head><body>
<div>Hello world from HTML</div>
</body></html>

In IE a PrintPreview will be instantly shown.

Expected Results:

To be able to instantly see a PrintPreview

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Rossen A.”

      Changed Assigned To from “Rossen A.” to “Jonathan H.”

      Changed Title from “Print Preview bug: interpretting protocol relative URL” to “Print Preview bug: scripts are downloaded even though they are not executed, thus a slow server/response can slow printing”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Status from “Won’t fix” to “Fixed”

      Changed Status from “Fixed” to “Won’t fix”

    You need to sign in to your Microsoft account to add a comment.

    Sign in