Defer JS [Deleted]

If someone links me to a site experiencing the problem I'd be happy to tell them what to add to the blacklist.
 
If someone links me to a site experiencing the problem I'd be happy to tell them what to add to the blacklist.
I am, I have a couple forums and even on my big board I have it enabled and then boom, the entire site is blank. Not sure why?
 
Interesting, my site loads faster without the add on. Am I missing something? PHP 5.5 currently active. Screenshots on left (ran the test 2 times) are with the add on "enabled" to the right is the add on "disabled."

Screen Shot 2014-09-14 at 8.17.59 AM.webp
 
Last edited:
I'm not sure, deferring javascript isn't always guaranteed to improve performance (and even when it does the improvement can be negligible).

Do you have Zend Opcache enabled? Also one thing I noticed is your ads are being deferred, they should be blacklisted in the options.

Lastly, the outlier of the tests above is performed in the Netherlands, while all the rest are performed in Dallas. The ones in Dallas are a lot closer, but there's still some slowdown. Nevertheless if you feel this add-on is having a net loss on performance then you're probably better without it.
 
Can't confirm. Probably one of your custom scripts doesn't like being deferred. You could blacklist it.. but I understand that takes some tinkering.

People are a bit caught off guard that the add-on isn't simply install-and-forget. It can require some messing around depending on your setup, but I've never experienced problems on a default install with the default style and adsense ads.

If your setup is different than that, especially if you include scripts not native to XenForo, you will need to modify the blacklist if you are experiencing problems.
 
Running the latest Chrome stable (38) on OS X 10.10 and I'm not experiencing the problem on my own community with the add-on enabled.. but that's not to say I doubt it's a real issue. Chrome has been known for their regressions.

May I have a link to a site actively experiencing the issue (with the add-on enabled)? I'm curious if there's a common script that Chrome 38 doesn't play nicely with.
 
Running the latest Chrome stable (38) on OS X 10.10 and I'm not experiencing the problem
Do you have access to a Windows machine? I think this might be a Chrome+Windows issue. Unfortunately I'm not going to break AVForums to reproduce it, and I can't get the error to happen on our sandbox.
 
Last edited:
Running the latest Chrome stable (38) on OS X 10.10 and I'm not experiencing the problem on my own community with the add-on enabled.. but that's not to say I doubt it's a real issue. Chrome has been known for their regressions.
That was my thought, that it is a regression in Chrome. On Windows, IE, Firefox and older Chrome work fine. Latest Chrome (38) breaks.

May I have a link to a site actively experiencing the issue (with the add-on enabled)? I'm curious if there's a common script that Chrome 38 doesn't play nicely with.
I'll see if I can reproduce it in my sandbox sometime this week.
 
Do you have access to a Winodows machine? I think this might be a Chrome+Windows issue. Unfortunately I'm not going to break AVForums to reproduce it, and I can't get the error to happen on our sandbox.
I have a VM with Windows 8.1 and Windows 10. I'll give it a look tomorrow.

I don't expect you to break your live site, but without being able to reproduce it there's not much I could do. I'll see if it's a Windows-specific problem tomorrow and get back to you.
 
@Stuart Wright @Xon Can't reproduce on my own site and Chrome 38 on Windows 8.1. Are you guys using any similar add-ons that use javascript?

I notice AVForums runs the Notifications add-on as well as ToggleME/Go To Top and some editorial addon. Also does the jump occur on every page or only specific pages?
 
@Stuart Wright @Xon Can't reproduce on my own site and Chrome 38 on Windows 8.1. Are you guys using any similar add-ons that use javascript?

I notice AVForums runs the Notifications add-on as well as ToggleME/Go To Top and some editorial addon. Also does the jump occur on every page or only specific pages?
Only on forum pages. Not on categories, or threads or any other pages. Just forum pages.
I'll quickly do some testing and enable Defer JS and then disable ToggleME and Go To Top. Let you know if it's one of those.
 
Ok, it's not ToggleMe, Go To Top, our Editorial system, Featured Threads, Notifications or the Forum Digest by Waindigo. Any other suggestions? We have about 60 addons altogether.
 
@Stuart Wright @Xon Can't reproduce on my own site and Chrome 38 on Windows 8.1. Are you guys using any similar add-ons that use javascript?
https://forums.sufficientvelocity.com/ is using the following addons which add JS (under the /js/ folder);
  • XenTag
  • [bd] TagMe
  • [bd] Medal
  • [bd] Widget Framework
  • BbCodes & Buttons Manager
  • TinyMCE Quattro
  • Some waindigo addons (ignore newposts, nextprevtab, warnings)
It's hard to tell what other addons inject inline javascript, as there is another +30 of them.
 
@Stuart Wright @Xon Sorry guys, studies got in the way and I had forgotten. Not sure what would be causing this but I really can't reproduce it using a default style and no other add-ons (but please tell me if you can!).

That list is the most promising start, I would disable each of those one at a time and see if the issue persists. If not, try disabling them all simultaneously. If the issue persists still then I would see what page (if not all) is experiencing the issue and check the source of that page for inline javascript.

I understand and respect, though, that it may be more efficient overall to just disable this add-on than to mess around trying to get it working.

@WearableTechForums.com It seems plausible but I've never heard anything of that sort? In any case you can add the script to the blacklist and it won't be deferred.
 
Back
Top Bottom