Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Async Javascript files
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 4:40 am

Hey boys, I have a question...

I have installed on my site a great plugin called "Asyncronous Javascript", you can find it HERE.

In Google Page Speed, the site got a sensational 95%. But some functions in SP didn't like that...

The two drop down menus at the top disappeared completely ("New/Recently updated topics" and "Select forum"), the button "Submit reply" and the possibility to load images in a post both stopped working. "Submit reply" was working only after refreshing the page.

But the funny thing is, I tested the site and the forum with Firefox, Chrome and Safari. Everything was working perfectly. I am in Australia, but some people in Italy had the problems I mentioned above, with all those browsers and with iPad. The site is hosted by an Italian company on some servers in the UK.

The plugin allows to ignore some JS files, in case of conflicts.

So the question is: which file/s control those functions? Is it possible to defer those scripts without errors?

Thank you! wink

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 18, 2013 - 5:38 am

Can we confirm something here..? Are you saying that in Australia everything loads fine but in Italy - using a specific ISP - it does not? That seems to be what you are suggesting but it doesn't really make a lot of sense...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 7:05 am

It doesn't make sense AT ALL, Andy!

I set up the plugin, tested and everything was perfectly fine.

A few days later, people in Italy started telling me "This is not working, that is not working either", so I switched the plugin off and now they say everything is fine. confused

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 18, 2013 - 7:10 am

I will need to download the plugin and give it a try on a test site. Hopefully can fix that up for later today. So will get back to you.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 18, 2013 - 7:44 am

I have to say I am totally surprised but so far all my tests suggest it has no negative impact at all and seems to work pretty well.

However - I DID have to clear my browser cache before things worked correctly so could it be as simple as that?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 3:11 pm

Thank you Andy!

I will try again and keep you updated wink

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2013 - 8:10 pm

thanks. we will be here.

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2013 - 3:48 am

Here I am!

I switched on the plugin again and so far so good. No complaints...yet.

Just one thing: the button to add a poll just disappeared...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 19, 2013 - 4:26 am

I don't see that problem either. I think some of this is caused by caching and you might want to turn off the combined scripts option (global options), run a forum page, clear your browser cache and then run a forum page again and see what you get. I certainly needed to clear the browser cache regularly...

One thing I have noticed and that is that this plugin does a real nasty job on the tinyMCE toolbar buttons - not sure what is going in there but it IS this plugin.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2013 - 3:41 pm

Andy, the only thing that is gone is the button for the polls, as I said before.

Everything else is working perfectly, TinyMCE included.

The site scores an excellent 94% in Google Page Speed so I am very happy.

No way to improve it further, I would need a CSS sprite but I cannot do it with the theme I am using.

Very good tho! laugh

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626