mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[PR #3848] [MERGED] fix: perfomance in safari #4554
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4554
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3848
Author: @nivedin
Created: 2/21/2024
Status: ✅ Merged
Merged: 2/21/2024
Merged by: @AndrewBastin
Base:
release/2023.12.6← Head:fix/safari-codemirror-perf-bug📝 Commits (10+)
6198a25fix: absolute gql response codemirror position1eb5e02fix: add parent container for codemirror instance7e1ebd5fix: add parent container for codemirror instance in gql2e8a04ffix: add parent container for codemirror instance in realtime8b0f337chore: remove unwanted stylec66ea66fix: increase paintfull performance6a65eb0fix: add parent container for codemirror instance in gql schemae6cc235fix: add parent containers for codemirror instancescd7429dfix: add parent containers for codemirror instancesa870725chore: enable cm scrollbar📊 Changes
18 files changed (+50 additions, -36 deletions)
View changed files
📝
packages/hoppscotch-common/assets/scss/styles.scss(+5 -0)📝
packages/hoppscotch-common/src/components/graphql/RequestOptions.vue(+1 -1)📝
packages/hoppscotch-common/src/components/graphql/Response.vue(+3 -1)📝
packages/hoppscotch-common/src/components/graphql/Sidebar.vue(+3 -5)📝
packages/hoppscotch-common/src/components/graphql/Variable.vue(+3 -1)📝
packages/hoppscotch-common/src/components/http/Headers.vue(+3 -1)📝
packages/hoppscotch-common/src/components/http/Parameters.vue(+3 -1)📝
packages/hoppscotch-common/src/components/http/PreRequestScript.vue(+2 -2)📝
packages/hoppscotch-common/src/components/http/RawBody.vue(+3 -1)📝
packages/hoppscotch-common/src/components/http/RequestTab.vue(+1 -1)📝
packages/hoppscotch-common/src/components/http/Tests.vue(+2 -2)📝
packages/hoppscotch-common/src/components/http/URLEncodedParams.vue(+3 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/HTMLLensRenderer.vue(+3 -5)📝
packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue(+6 -5)📝
packages/hoppscotch-common/src/components/lenses/renderers/RawLensRenderer.vue(+3 -1)📝
packages/hoppscotch-common/src/components/lenses/renderers/XMLLensRenderer.vue(+3 -1)📝
packages/hoppscotch-common/src/components/realtime/Communication.vue(+3 -1)📝
packages/hoppscotch-common/src/helpers/editor/themes/baseTheme.ts(+0 -6)📄 Description
Closes HFE-433
Description
The overall performance in Safari especially when the response section is rendered was bad and laggy.
The performance of the app in safari was bad for the following reasons
The codemirror didn't have a parent container which leads to attain the height of the next parent element which inherited the height of the splitpanes which lead to lag while changing the height of the splitpanes
The browser was unaware (mostly safari) of the layout paint areas due to splitpanes height/width changes rapidly, adding will-change property and changing the splitpanes to a new layer reduced the Cumulative Layout Shift and Total Blocking Time to half
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.