Slow panel when switching tabs or saving changes

I am using kirby 5. My panel is very slow. Switching between tabs takes time. I see the loading icon. Also saving a page takes allot of time.
A example of my page blueprint is

tabs:
  header:
    label: Header
    fields:
      headerlarge:
        label: Large navigation
        type: blocks
        fieldsets:
          - navbar
          - subnavbar

      headersmall:
        label: Small navigation
        type: blocks
        fieldsets:
          - navbar
          - subnavbar

  footer:
    label: Footer
    fields:
      footerSections:
        label: Sections
        type: blocks
        fieldsets:
          - footersection

See here a screen recording: https://drive.google.com/file/d/1Fi0mZ_MK7AwEGvA0zY-oy14AnqiSsNT2/view?usp=sharing

Some pages even load slower, like double time of what we see in the video

Could you please share your custom field sets as well?

name: navbar
title: Navbar
icon: menu
preview: fields
wysiwyg: true

tabs:
  content:
    label: Content
    extends: fieldsets/structure
  layout:
    label: Layout
    extends:
      - fieldsets/verticalalign
      - fieldsets/padding
      - fieldsets/height
      - fieldsets/container
      - fieldsets/gap
  settings:
    label: Settings
    extends: fieldsets/id

name: subnavbar
title: Subnavbar
icon: menu
preview: fields
wysiwyg: true

tabs:
  content:
    label: Content
    extends: fieldsets/structure
  layout:
    label: Layout
    extends:
      - fieldsets/verticalalign
      - fieldsets/padding
      - fieldsets/height
      - fieldsets/container
      - fieldsets/gap
  settings:
    label: Settings
    extends: fieldsets/id

name: section
title: Section
icon: menu
preview: fields
wysiwyg: true

tabs:
  content:
    label: Content
    extends: fieldsets/structure
  layout:
    label: Layout
    extends:
      - fieldsets/padding
      - fieldsets/container
      - fieldsets/gap
  style:
    label: Style
    extends:
      - fieldsets/backgroundcolor
  settings:
    label: Settings
    extends: fieldsets/id

And some of the extends

fields:
  mainlayout:
    label: Grid
    title: Section layout
    type: layout
    layouts:
      - "1/1"
      - "1/2, 1/2"
      - "1/3, 1/3, 1/3"
      - "1/4, 1/4, 1/4, 1/4"
      - "4/12, 8/12"
      - "8/12, 4/12"
      - "7/12, 1/12, 4/12"
      - "4/12, 1/12, 7/12"
      - "4/12, 2/12, 2/12, 2/12, 2/12"
      - "2/12, 2/12, 2/12, 2/12, 4/12"
      - "6/12, 2/12, 2/12, 2/12"
      - "2/12, 2/12, 2/12, 6/12"
      - "6/12"
      - "5/12"

    fieldsets:
      Text:
        label: Text
        type: group
        fieldsets:
          - heading
          - tagline
          - text
          - list
          - quote

      Elements:
        label: Elements
        type: group
        fieldsets:
          - button
          - alert
          - notification
          - stat
          - table
          - accordion
          - line
          - spacer

      Media:
        label: Media
        type: group
        fieldsets:
          - image
          - video
          - gallery
          - logo
          - icon

      Components:
        label: Components
        type: group
        fieldsets:
          - breadcrumb
          - card
          - modal
          - banner
          - form
          - pricing
          - comparison
          - testimonial
          - timeline
          - team


      Sliders:
        label: Sliders
        type: group
        fieldsets:
          - sliderinfinite
          - slidertabs
          - slidercards
          - slidermarquee

      Layout:
        label: Layout
        type: group
        open: false
        fieldsets:
          - nestedlayout
          - columnsetting

      SpecialText:
        label: Special text
        type: group
        open: false
        fieldsets:
          - code
          - markdown

      Header:
        label: Header
        type: group
        open: false
        fieldsets:
          - languageselector
          - logo
          - menu
          - search
          - expander

      Footer:
        label: Footer
        type: group
        open: false
        fieldsets:
          - descriptiondetails
          - languageselector
          - heading
          - logo
          - menu
          - search
          - text

fields:
  paddingdifferent:
    label: Padding different per side?
    type: toggle
    width: 1/1
    default: false

  paddingall:
    label: Padding (all sides)
    type: select
    options:
      p-small: Small
      p-medium: Medium
      p-large: Large
    width: 1/1
    when:
      paddingdifferent: false

  paddingtop:
    label: Padding Top
    type: select
    options:
      pt-small: Small
      pt-medium: Medium
      pt-large: Large
    width: 1/4
    when:
      paddingdifferent: true

  paddingright:
    label: Padding Right
    type: select
    options:
      pr-small: Small
      pr-medium: Medium
      pr-large: Large
    width: 1/4
    when:
      paddingdifferent: true

  paddingbottom:
    label: Padding Bottom
    type: select
    options:
      pb-small: Small
      pb-medium: Medium
      pb-large: Large
    width: 1/4
    when:
      paddingdifferent: true

  paddingleft:
    label: Padding Left
    type: select
    options:
      pl-small: Small
      pl-medium: Medium
      pl-large: Large
    width: 1/4
    when:
      paddingdifferent: true

This is a lot of nested things with many custom field sets and extends. Will be hard to recreate it from this. Any chance you can send us a copy/ZIP of the project/the blueprints to mail@getkirby.com? Because I feel it will be hard to replicate the issue and investigate it without creating the same/a similar complex and nested setup.

Will do, gonna email it now to you

Just one more question. Is this already 5.0.1? The structure fields had a pretty big performance bug that we eliminated in the patch release.

Yes I am using 5.0.1