Support Forum

Async Javascript files

45 Answers

New Answer

SP Stefano Prete
Stefano Prete
Member

No Andy, no errors.

Just some notice, but I don’t know whether they are related to it or not.

YS Yellow Swordfish
Yellow Swordfish
Member

Notice? In the Script Console? I think you were looking in the error log. The script console will come with your browser and will be on the menu somewhere depending on which one you use.

SP Stefano Prete
Stefano Prete
Member

Damn…

I am using Firefox. I just checked and there is a lot of stuff there!

What am I supposed to look for?

YS Yellow Swordfish
Yellow Swordfish
Member
  1. Open the Firefox ‘web console’
  2. Choose ‘JS’ and open the drop-down. ONLY select errors
  3. Remove all displays from the other items (net, CSS, security etc) so that ONLY script errors will get displayed otherwise it will get messy
  4. Clear the console so it is empty.
  5. Load up a forum page in add topic mode. one that allows polls
  6. Copy and paste the resultant errors.

 

MP Mr Papa
Mr Papa
Member

sorry, to jump in, but you say you should have permission for polls… are you sure polls are enabled in the forum you are using?  each forum has to be enabled individually…  just checking…

SP Stefano Prete
Stefano Prete
Member

Steve…I feel like crap now…confused

I am so sorry, the polls were enabled in one forum only and I was looking to all the others.

Sorry for bothering you guys. Everything is working perfectly!

Thank you so much for everything!

YS Yellow Swordfish
Yellow Swordfish
Member

Excellent news.

I have to say I am impressed that this plugin does what it says without blowing out SP scripts. I do intend to play with it and do some performance testing of my own.

SP Stefano Prete
Stefano Prete
Member

Andy, I tried some other plugins to defer Javascript, move them to the footer and so on.

None of them works properly, a lot of JS errors. This one seems to be just good, it does what it’s supposed to and everything works fine.

Knowing how Google and Yahoo are insisting on the speed, I think it’s a plugin to consider on every site. wink

YS Yellow Swordfish
Yellow Swordfish
Member

The main issue that I saw was simply that it needs to load the SP scripts in the header which in itself of course, is not ideal. But if you also turn on the compressed/cached script files in SP then that will probably offset this disadvantage enough.

SP Stefano Prete
Stefano Prete
Member

Andy, a couple of boys from Italy told me they still have to clear the cache of the browser pretty much every time they go to the forum, as a few things (buttons like “Add reply” and so forth) don’t work. When they clear the cache, everything works just fine.

Any idea what can cause it?

I tested the site and the forum with Firefox, Chrome, Safari and Opera, it works great with all of them, no need to clear the cache at all. But over there some people have a few issues.

I do not know what to tell them…

YS Yellow Swordfish
Yellow Swordfish
Member

To be honest I don’t really think that makes a lot of sense. The browser cache can only cache the items requested by the html.
Any ideas anyone?

SP Stefano Prete
Stefano Prete
Member

It was enabled, Steve.

Now it’s off, let’s see if it helps…