WebSite X5Help Center

 
Nektarios K.
Nektarios K.
User

Asynchronous javascript  en

Autor: Nektarios K.
Visitado 1442, Followers 1, Compartido 0  

Hi There, 

I want to try the asynchronous javascript.
I saw the script should be like that

Where I have to write that script? At the home page preference - advance code?

Thanks

Publicado en
6 RESPUESTAS - 1 ÚTIL
Axel  
Axel  
User

Hello,

If you write your code into the page_x proprerties / advanced tab, your code will be used ONLY for the page_x or page_y

Also you can write your code into the step 1 / Stats & Code / Code tab. In this case your code will be used for ALL pages into your website. It's a global usage.

Sometimes it's useful to put the JS script code into the global code for several different pages...

Hope this helps

Enjoy !

Axel

Leer más
Publicado en de Axel  
Nektarios K.
Nektarios K.
User
Autor

Dear Axel,

Thanks for the info. As I'm zero levels in code do you mean to add this code before closing the head tag? 

Please check the attached screenshot 

Thanks,

Nek

Leer más
Publicado en de Nektarios K.
Axel  
Axel  
User

Hello Nek.

Yes it's the good place  wink

if you need to add code, generally an HTML page is organized like:

<html>

<head>

<style>
       here CSS code
</style>

<script>
      here javascript code & funtions
</script>

</head>

</body>
       here HTML code
</body>

</html>

Enjoy!

Axel

Leer más
Publicado en de Axel  
Nektarios K.
Nektarios K.
User
Autor

Dear Axel,

Kindly requested to check the attached screenshot.

Please let me know if is the correct way that.

As additional, I add some code bellow of I use to each page. If I can to use there is a better option to have it on each page? 

What about the original file of jquery? I have to delete it or leave it? 

Please advice.

Regards,

Nek

Leer más
Publicado en de Nektarios K.
Axel  
Axel  
User

Nek,

I don't know what is this code. I give you a summury explanation on how too, but I cannot provide any support for external code. I am sorry for that.

I don't know the usage of the function (a,b) and the rest of the code. But I will say to leave this code in place.

My better suggestion before to integrate any code into WSX5 is to test it into an external & independent html file.

So when your external html file is ready, you can start to integrate it into WSX5, step by step

Enjoy !

Axel

Leer más
Publicado en de Axel