Results 1 to 5 of 5

Thread: Ext 6.5.2 Modern:Very slow load in Safari when empty Grid controls with flex are used

  1. #1
    Sencha User
    Join Date
    Nov 2016
    Posts
    77
    Answers
    2

    Default Answered: Ext 6.5.2 Modern:Very slow load in Safari when empty Grid controls with flex are used

    Hi,

    In Safari browser(iPad/iPhone), a fiddle, which contains two empty grid controls nested under few panels, loads in about 77 seconds, the same fiddle loads in about 2.477 seconds in chrome browser.

    Fiddle: https://fiddle.sencha.com/fiddle/2en5/preview (browse the fiddle, notice the "Load Time" text field value)
    The Fiddle has below layout(mainContainer, Column, Row, Cell are panels with hbox/vbox layout)
    MainContainer
    -Columns (columns are horizontally aligned to each other)
    -Rows (rows are vertically aligned to each other)
    -Cells (cells are horizontally aligned to each other)
    -Controls (two empty grid controls, with flex:1)

    This is happening only in Safari browser of iPad/IPhone, for the rest of OS/Browser combinations the load time is pretty less.

    It appears there are some performance issues with Safari browser when flex boxes are involved(maybe when flex boxes are involved with nested layouts) https://www.reddit.com/r/apple/comme...nce_issues_on/.
    There is already a similar post submitted too, https://www.sencha.com/forum/showthr...seriously-slow

    I have noticed that this currently happens for grid controls only, if I replace them with buttons or tab item controls then this won't happen (for tab controls, it depends upon the tab items, but still it is not as big as 77 seconds)

    This obviously looks like something that needs to be fixed by the Safari webkit, but I am wondering if there is anything we can do from our end? Maybe something that can trim down grid controls? (If any), just checking the possibility.

    Thank you,
    Nagarjuna

  2. Read the docs:

    Code:
    Ext.define('MyApp.overrides.Container', {
        override: 'Ext.Container',
        config: {
            autoSize: false
        }
    });

  3. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250
    Answers
    758
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #3
    Sencha User
    Join Date
    Nov 2016
    Posts
    77
    Answers
    2

    Default

    I have placed an override that would set all containers to have autoSize:false (same fiddle posted in the Question),
    Code:
    Ext.override(Ext.Container, {
        autoSize: false,
    });
    but could not see any reduction in the lag!!.

  5. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250
    Answers
    758

    Default

    Read the docs:

    Code:
    Ext.define('MyApp.overrides.Container', {
        override: 'Ext.Container',
        config: {
            autoSize: false
        }
    });
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  6. #5
    Sencha User
    Join Date
    Nov 2016
    Posts
    77
    Answers
    2

    Default

    Many thanks, with the override the fiddle now loads within 2s!..
    (I thought Ext.override({ overrides }) is just as same as Ext.define(override: { overrides } !!)

Similar Threads

  1. [OPEN] Flex on a column in a modern toolkit grid
    By EPV in forum Ext JS 6.x Bugs
    Replies: 5
    Last Post: 21 Sep 2015, 5:07 PM
  2. Flex on a column in a modern toolkit grid
    By EPV in forum Ext JS 6.x Q&A
    Replies: 0
    Last Post: 23 Jun 2015, 7:49 AM
  3. Replies: 0
    Last Post: 9 Feb 2015, 8:48 AM
  4. Performance Issue in Grid, grid data load too slow and filter is too slow
    By herleraja in forum Sencha Architect 3.x: Q&A
    Replies: 0
    Last Post: 9 Feb 2015, 8:48 AM
  5. [CLOSED] EXT JS Forum is very slow to load on Mac Safari and FireFox
    By CrazyEnigma in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 May 2010, 9:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •