Welcome Guest, Not a member yet? Register   Sign In
Header is loaded at the end
#6

Hi guys,

finally I found the solution. I get the idea of remove the whole JavaScript code and ¨expand¨ it. 

First I tried that, just remove the JavaScript, but I found that the issue was still there, the header was still loaded at the end of the source code. Then created a simple view (a div with a hello world as content), and it worked as expected, no issue with the header. Then I started adding back my html and php code until I found it reproduced again. A php call to retrieve a cookie with php $_COOKIE variable was the problem. I remove that and retrieve the information with an ajax call from the server and everything worked perfect.

Thanks for the ideas. Wink
Reply


Messages In This Thread
Header is loaded at the end - by Datenshi - 10-30-2018, 08:45 AM
RE: Header is loaded at the end - by dave friend - 10-30-2018, 10:51 AM
RE: Header is loaded at the end - by php_rocs - 10-30-2018, 05:30 PM
RE: Header is loaded at the end - by Pertti - 10-31-2018, 02:48 AM
RE: Header is loaded at the end - by InsiteFX - 10-31-2018, 03:07 AM
RE: Header is loaded at the end - by Datenshi - 10-31-2018, 07:54 PM
RE: Header is loaded at the end - by garimapatil - 02-06-2019, 12:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB