HavanA Posted August 2, 2014 Share Posted August 2, 2014 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 More sharing options...
vekia Posted August 2, 2014 Share Posted August 2, 2014 i tried to reproduce issue but i can't i checked several pages on your website (product pages) and not matter how many times i check them - everthing works well Link to comment Share on other sites More sharing options...
HavanA Posted August 2, 2014 Author Share Posted August 2, 2014 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 More sharing options...
vekia Posted August 2, 2014 Share Posted August 2, 2014 perhaps you have some browser plugins to block / remove cookies etc? it is possible anyway, im on chrome win 7 and everything works well :-) Link to comment Share on other sites More sharing options...
HavanA Posted August 2, 2014 Author Share Posted August 2, 2014 Ok, thanks again. I will mark this topic as solved. Link to comment Share on other sites More sharing options...
HavanA Posted August 26, 2014 Author Share Posted August 26, 2014 (edited) 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 August 26, 2014 by HavanA (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 26, 2014 Share Posted August 26, 2014 i checked page once again now i see there errors: you use some non default faq module? Link to comment Share on other sites More sharing options...
HavanA Posted August 27, 2014 Author Share Posted August 27, 2014 Yes, there is a faq-module form third party that is installed. It is a part of a package of several content modules. Link to comment Share on other sites More sharing options...
El Patron Posted August 27, 2014 Share Posted August 27, 2014 did you modify prestashop for javascript async="async"? Link to comment Share on other sites More sharing options...
HavanA Posted August 27, 2014 Author Share Posted August 27, 2014 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... Link to comment Share on other sites More sharing options...
El Patron Posted August 27, 2014 Share Posted August 27, 2014 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 More sharing options...
El Patron Posted August 27, 2014 Share Posted August 27, 2014 probably in your header.tpl file... 1 Link to comment Share on other sites More sharing options...
HavanA Posted August 27, 2014 Author Share Posted August 27, 2014 I removed the "async" from the header.tpl but still the same more or less; these buttons seem to show more often than not. And I expected a slower loading of pages but it seems faster. Link to comment Share on other sites More sharing options...
El Patron Posted August 27, 2014 Share Posted August 27, 2014 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 More sharing options...
HavanA Posted August 28, 2014 Author Share Posted August 28, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now