Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #24673
Closed
Open
Issue created Nov 04, 2017 by Administrator@rootContributor

Bootstrap's font-family style reduces SVG performance in Google Chrome

Created by: Herst

In Google Chrome there seems to be an issue where the value of the font-family has an effect on the performance when scaling <text> elements inside a SVG. It seems like the values are parsed anew every time the effective font size changes. With Bootstrap 4 the value of font-family is -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" and this had a noticeable negative impact on a SVG interaction heavy web application which I ported from Bootstrap 3 to Bootstrap 4

It could be that the effect does not show on macOS, since the -apple-system generic font family matches right away, while on Windows/Linux/Android several font families need to be dismissed before arriving at one which exists.

See https://crbug.com/781344 for details. I would also welcome contributions to the bug report which would help in getting it confirmed and fixed. I reproduced it on Desktop Linux and Windows for now, no idea about macOS or Android.

Setting the font-family style of <svg> elements to something simple seems to work.

Assignee
Assign to
Time tracking