Skip to content

Long delay for polymer element to display #12362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Aug 9, 2013 · 16 comments
Closed

Long delay for polymer element to display #12362

DartBot opened this issue Aug 9, 2013 · 16 comments
Labels
closed-obsolete Closed as the reported issue is no longer relevant os-linux
Milestone

Comments

@DartBot
Copy link

DartBot commented Aug 9, 2013

This issue was originally filed by [email protected]


There is a 3-4 second delay between the time the content of a page displays and the time the polymer element displays.

This is an issue on ubuntu 13.04, 32bit. There is no delay running equivalent code on Win8, 64bit.

dart_test.html
<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <title>Dart test</title>
    <link rel="stylesheet" href="dart_test.css">
     <link rel="import" href="packages/dart_test/footer.html">
  </head>
  <body>
    <h1>Dart test</h1>

    <p>Hello world from Dart!</p>

    <div id="sample_container_id">
      <p id="sample_text_id"></p>
    </div>
    <my-footer></my-footer>
    <script type="application/dart" src="dart_test.dart"></script>
    <script src="packages/polymer/boot.js"></script>
  </body>
</html>

lib/footer.html
<!DOCTYPE html>

<html>
  <head>
  </head>

  <body>
    <polymer-element name="my-footer" >
      <template>
        <p>here is the footer</p>
      <script type="application/dart" src="footer.dart"></script>
    </template>
    </polymer-element>
  </body>
</html>

lib/footer.dart
import 'package:polymer/polymer.dart';

@CustomTag("my-footer")
class MyFooter extends PolymerElement {

}

pubspec.lock

Generated by pub

See http://pub.dartlang.org/doc/glossary.html#lockfile

packages:
  analyzer_experimental:
    description: analyzer_experimental
    source: hosted
    version: "0.6.15+3"
  args:
    description: args
    source: hosted
    version: "0.6.15+3"
  browser:
    description: browser
    source: hosted
    version: "0.6.15+3"
  csslib:
    description: csslib
    source: hosted
    version: "0.4.7+11"
  custom_element:
    description: custom_element
    source: hosted
    version: "0.6.15+3"
  fancy_syntax:
    description: fancy_syntax
    source: hosted
    version: "0.0.7"
  html5lib:
    description: html5lib
    source: hosted
    version: "0.4.4"
  html_import:
    description: html_import
    source: hosted
    version: "0.6.15+3"
  logging:
    description: logging
    source: hosted
    version: "0.6.15+3"
  mdv:
    description: mdv
    source: hosted
    version: "0.6.15+3"
  meta:
    description: meta
    source: hosted
    version: "0.6.15+3"
  mutation_observer:
    description: mutation_observer
    source: hosted
    version: "0.6.15+3"
  observe:
    description: observe
    source: hosted
    version: "0.6.15+3"
  path:
    description: path
    source: hosted
    version: "0.6.15+3"
  polymer:
    description: polymer
    source: hosted
    version: "0.5.3"
  serialization:
    description: serialization
    source: hosted
    version: "0.6.15+3"
  shadow_dom:
    description: shadow_dom
    source: hosted
    version: "0.6.15+3"
  source_maps:
    description: source_maps
    source: hosted
    version: "0.6.15+3"
  stack_trace:
    description: stack_trace
    source: hosted
    version: "0.6.15+3"
  unittest:
    description: unittest
    source: hosted
    version: "0.6.15+3"
  unmodifiable_collection:
    description: unmodifiable_collection
    source: hosted
    version: "0.6.15+3"

@DartBot
Copy link
Author

DartBot commented Aug 9, 2013

This comment was originally written by [email protected]


Additional info: Dartium is the browser. Dartium displays "connecting" and (sometimes) "waiting for cache" during the delay

@sethladd
Copy link
Contributor

sethladd commented Aug 9, 2013

What happens when you try a non-polymer app on Ubuntu? Perhaps a Web UI app?

@DartBot
Copy link
Author

DartBot commented Aug 9, 2013

This comment was originally written by [email protected]


The sample Web UI app generated by Dart shows a delay, but it's about half as long as the polymer delay. The "connecting" message flashes but I never see the "waiting for cache" message.

@anders-sandholm
Copy link
Contributor

Added Area-Polymer, OpSys-Linux, Triaged labels.

@sethladd
Copy link
Contributor

sethladd commented Sep 6, 2013

I'm sorry, I can't reproduce this. Can you attach a screenshot of Dev Tools network tab and Dev Tools Timeline tab?

@DartBot
Copy link
Author

DartBot commented Sep 6, 2013

This comment was originally written by [email protected]


Screen shots attached


Attachments:
timeline.png (827 KB)
network.png (1 MB)

@DartBot
Copy link
Author

DartBot commented Sep 6, 2013

This comment was originally written by [email protected]


Note - The screen shots above are from my application. I get the same results by creating and running a new polymer app.
build: 0.7.1_r27025

@sigmundch
Copy link
Member

Added this to the M8 milestone.

@jmesserly
Copy link

are you loading from file:// URL or from http:// ? does it make a difference? can you try: python -m SimpleHTTPServer and load the URL from localhost:8000; does that help? How full is the disk? ("df" shows the % used)

@jmesserly
Copy link

Added NeedsInfo label.

@sigmundch
Copy link
Member

Removed this from the M8 milestone.
Added this to the Later milestone.
Added Library-HtmlImports label.

@sigmundch
Copy link
Member

Removed this from the Later milestone.
Added this to the M9 milestone.

@clayberg
Copy link

Removed this from the M9 milestone.
Added this to the 1.1 milestone.

@sigmundch
Copy link
Member

Removed this from the 1.1 milestone.
Added this to the 1.2 milestone.

@anders-sandholm
Copy link
Contributor

Removed Library-HtmlImports label.
Added Pkg-HtmlImports label.

@jmesserly
Copy link

Added AssumedStale label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant os-linux
Projects
None yet
Development

No branches or pull requests

7 participants