• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed (chrome) ~10 second js lag on loading style property group

Jake Bunce

XenForo moderator
Staff member
#1
To reproduce, use Chrome and load this page:

admin.php?styles/master-style.0/style-properties&group=general

It hangs for about 10 seconds. From the console:

Screen shot 2013-01-26 at 4.26.00 PM.png

I debugged this and narrowed it down to this line from init:

Code:
XenForo._TimestampRefresh = new XenForo.TimestampRefresh();
If I remove this line then the lag goes away, but then of course you get other errors because that object isn't setup. I don't have a proper fix.
 

cclaerhout

Well-known member
#2
When debugging I turned arround this line:
Code:
.trigger({ element: element, type: 'XenForoActivateHtml' })
But no fix too :( It seems Chrome has a memory leak.
Thank you Jake to have checked this.
 

Jake Bunce

XenForo moderator
Staff member
#6
is this the cause of when you insert image using the icon in the tinymce
it takes 5seconds to load the window?
Unknown, but please start a new report for separate issues. People keep piling on these js issues looking for common causes and it just gets confused.
 

cclaerhout

Well-known member
#7
is this the cause of when you insert image using the icon in the tinymce
it takes 5seconds to load the window?
No need to create a report, that's not a bug. TinyMCE inline popups are reloading all javascript files that's why it sounds as slow as Wordpress. Use this addon to fix this.

Unknown, but please start a new report for separate issues. People keep piling on these js issues looking for common causes and it just gets confused.
My bad for the last time... :oops: