Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • tub-floorplan tub-floorplan
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

Das GitLab der TUHH wird in der Zeit vom 18.9. bis 1.10. täglich zwischen 17:00 Uhr bis voraussichtlich 18:00 Uhr nicht zur Verfügung stehen. Weitere Informationen stellen wir auch im Newsfeed des RZ zur Verfügung.

  • Tobias Zeumer
  • tub-floorplantub-floorplan
  • Issues
  • #25
Closed
Open
Issue created Jun 18, 2018 by Tobias Zeumer@tobias.zeumerMaintainer

Erster Seitenaufruf (=uncached) und fehlende Map

Die Karte wird beim ersten Laden der Seite nicht gezeigt. svg#tubhh kriegt eine height/width:0vw verpasst.

Das liegt indirekt an dieser (bzw. dann dieser) Zeile.

Effektiv ist das Problem anscheinend, dass append() (diese Zeile) synchronous ist, aber das DOM update nicht. Das fällt wohl nur auf, weil das SVG (zumal die unoptimierte Inkscape-Version) verhältnismäßig riesig ist.

Nacht dem append() alles weitere á la setTimeout(function(){onSVGappended();}, 10); geht, aber ist äußerst unschön...

Interessant:

Fundamental difference: DOM is ready: usually ideal. LOADED: This is when the whole page has finished loading, which is different. For example, this will wait for images to be finished loading, so that you can measure their widths and heights accurately.

Browser sagt auch "Browser says [Violation] Forced reflow while executing JavaScript took 559ms" - kein Fehler, aber recht viel zeit dennoch...

Stimmt das so noch und auch für jQuery ready? Das bringt so nichts

$(window).bind('load', function(){
    // Load map
});  
Edited Jul 01, 2018 by Tobias Zeumer
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking