Open Bug 804889 Opened 12 years ago Updated 2 years ago

Any html elements having `src` attribute should support `defer`(async load), NOT only the <script>

Categories

(Core :: DOM: Core & HTML, defect, P5)

16 Branch
x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: chenzx, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0 Build ID: 20121010144125 Steps to reproduce: I want to implement a async loading behavour using <frame>/<iframe>, That is to say, I can display contents in one frame, and PRELOAD in another frame, Sadly, i find that, if a <frame> is loading page by changing `src` attribute, then all other <frame>'s message loogs are blocked(I can not scroll the page) To summerize, any html elements having `src` attribute should support `defer`(async load), NOT only the <script> element, this is a design dismiss Perhaps the W3C is the one to blame?
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
> i find that, if a <frame> is loading page by changing `src` attribute, then all other > <frame>'s message loogs are blocked(I can not scroll the page) That's.... quite odd. Testcase? > Perhaps the W3C is the one to blame? Them or the whatwg would need to spec this, yes.
Test Case: A Python Script to simulate slow http server: import SimpleHTTPServer import BaseHTTPServer import time import SocketServer PORT = 8888 class MySlowHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): time.sleep(10) SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) httpd = BaseHTTPServer.HTTPServer(("", PORT), MySlowHTTPRequestHandler) print "serving at port", PORT httpd.serve_forever() Frames load test html: <frameset cols="50%,50%"> <frame src="http://localhost:8888/1.html"/> <frame src="2.html"/> </frameset> 1.html & 2.html: <div style="width:100%; height:2000px;"> test </div>
Sorry, i have to confess: it is NOT blocked in current Firefox 16, which uses multi-process arch. i test this in QtWebKit (ver 4.8.0) which is an old Single process browser built on WebKit But the problem still quotes: W3C seems to NOT considering a `defer` or `async` with the `src` loading attribute. I can not find a way to blame W3C, But mozilla's bugzilla seems a good place for discuss. 3x!
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.