4 <script src=
"../webcomponentsjs/webcomponents.js" debug
></script>
6 <title>Race condition
</title>
9 <link rel=
"import" href=
"core-ajax.html">
10 <link rel=
"import" href=
"../paper-progress/paper-progress.html">
11 <polymer-element name=
"progress-test">
15 url=
"http://httpbin.org/drip"
16 params=
"{{ {numbytes: numbytes, duration:5} }}"
17 response=
"{{response}}"
18 progress=
"{{progress}}"
23 Ordinarily you'd gate on progress.lengthComputable, but we know the
24 length in this case (and httpbin sadly doesn't return a
25 Content-Length header for this requesthere).
27 https://github.com/kennethreitz/httpbin/pull/160
30 <button on-click=
"{{restart}}">Restart
</button>
31 <template if=
"{{loading}}">
34 <template if=
"{{!loading}}">
38 <template if=
"{{loading && progress.loaded}}">
40 value=
"{{progress.loaded}}"
47 Polymer('progress-test', {
52 return JSON
.stringify(i
, null, 2);
63 <progress-test></progress-test>