X3 Photo Gallery Support Forums

Topic Author
Posts: 3
Joined: 11 May 2018, 09:14

Chatra PROTIP :)

11 May 2018, 11:14

When you using Chatra the problem is you get small icon after load and big button with text only if user click on it.
You can make your chatra button big instantly after load, simply remove your chatra account from Accounts, and instead put
this code in your Custom Head section (it's empty by default)

<!-- Chatra {literal} -->
(function(d, w, c) {
w.ChatraID = '----CHATRA_ID_HERE----';
var s = d.createElement('script');
w[c] = w[c] || function() {
(w[c].q = w[c].q || []).push(arguments);
s.async = true;
s.src = '';
if (d.head) d.head.appendChild(s);
})(document, window, 'Chatra');
<!-- /Chatra {/literal} -->

With this you will get nice bigger tab just after page load :)
User avatar
X3 Wizard
Posts: 12195
Joined: 30 Sep 2006, 03:37

Re: Chatra PROTIP :)

12 May 2018, 03:11

We don't load chatra into X3 until the button is clicked. Why? Because MOST of your visitors will not be chatting with you. Why load a large javascript into the browser unless it will be used? This is a good thing.

Furthermore, since your very old X3 version, Chatra was moved to PLUGINS, and has option to "force load" immediately: