Jump to content

[solved] Javascript not loading correctly (the first time) (fix: removed async hack)


Recommended Posts

Does anybody know why javascript is not loading correctly the first time the site is loaded? It does load correctly (most of the times, but not always) the second time when the page is refreshed. It does that even if cache is cleared before.

 

example: http://www.inktoutlet.nl/inkoutlet/faq

 

1st load: http://prntscr.com/48q7l7

after refresh: http://prntscr.com/48q7op

Link to comment
Share on other sites

Thanks for trying, Vekia.

 

Today others also tell me they do not see the issue and I cannot reproduce it myself on the linux-laptop that my [spam-filter] is using. I did notice that this problem is on my two PC's and with Chrome only. I also noticed that with Chrome I am unable to login on this forum so there must be something wrong with my Chrome browser. I have to figure out what that is, I tried disabling several/all extensions but the issue did not go away.

 

To make a long story short: I do not think this is a javascript problem anymore.

 

Cheers!

Link to comment
Share on other sites

  • 4 weeks later...

Unfortunately this issue keeps coming up. I can reproduce the issue on other computers with different browser as well. In the right upper corner (next to the login) three login buttons for facebook, Livemail and Google+ should display, but a lot of times they don't. Same goes for the login page.

 

According to the developer of the module there is a javascript error: http://prntscr.com/4gkbif

 

How do I solve that?

Edited by HavanA (see edit history)
Link to comment
Share on other sites

Hmm... yes I remember that I did that some time ago. That might be the cause. But for now I can't recall where I modified that exactly...

 

think man think...jajajajaja

 

async works in 'almost' all browers and situations, but almost is the same as guessing and I have seen the 'hack'  somewhere on the forum, that is issue with core hacks...they almost work.

 

when you get done with removing this 'suggested working hack', go visit JavaPro.

Link to comment
Share on other sites

your current javascript loading placement is, well a mess. :)

 

but this is true for all pre 1.6 shops so trying like you did to make it 'better' was a noble cause.

 

our module does support advanced users (and I mean advanced literally) in that you can use async or defer by script, but we recommend using the basic move down javascript process...the advanced was more for 'could it be done'.

 

happy day, el

Link to comment
Share on other sites

Yesterday when I removed the "async" it seemed to work correctly in Explorer only (and it did not do that earlier). In FF and Chrome these social login buttons seemed to display more often than not (earlier it was the other way 'round). This morning it seems all to work OK in all browsers. Maybe it was still in cache (allthough I cleared that yesterday).

 

Removing this "async" is the key to solving this javascript issue.

Thank you El Patron.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...