Loading...
 
Skip to main content

Features / Usability


Codemirror and heavy scripts

posts: 4

Hi, when checking the loading time of tiki 21, 24, or 27, if codemirror is enabled, I see a huge codemirror.js (1.2MB) on all pages.

We only use syntax highlighting on specific pages/structures that only admins (developers) can use: is there a way to load codemirror.js only for specific group/pages, and without having to switch codemirror in the admin page each time an authorized user needs it?

There is a similar issue with recaptcha__en.js (550 KB): is it possible to load it only when using tiki-contact.php?

thanks,
--
mb

posts: 1643 Canada

I agree with the concern. If it loads on all pages, it's somewhat of a bug, so I suggest to report report it

There are some options to Minify JavaScript. Maybe there is something there to help?

posts: 4
Marc Laporte wrote:

I agree with the concern. If it loads on all pages, it's somewhat of a bug, so I suggest to report report it
//

Hi, thank you for your reply.
I have submitted the wish (although, when trying to read the post I get a fatal error ( https://dev.tiki.org/item8741-Codemirror-and-heavy-scripts )

This means that for the moment, as tiki 21 is 3.2 Mo, tiki 24 4.2 Mo, and tiki 27 5.6 Mo, we have to stay on tiki 21 : we have a cheap hosting, and we use many modified php, mostly for I18n and trying to improve a bad SEO (see https://www.ifrei.org). Upgrading to 27 would therefore involve a lot of work, and as tiki 27 is much heavier than tiki 21, and probably slower on our cheap server, the operation wouldn't be worth it.

--
mb

posts: 8648 France
mb wrote:
we have to stay on tiki 21 .../... trying to improve a bad SEO


Hello mb,

While every project and Tiki site has unique SEO requirements. I’ve a Tiki Express Tutorial on optimizing Tiki SEO waiting to be published after updating it for Tiki 27 (yes I'm late 🤣).

After reviewing your website, I’m confident I can help you enhance its SEO performance. Don’t hesitate to reach out!

posts: 4
Bernard Sfez / Tiki Specialist wrote:

Hello mb,

While every project and Tiki site has unique SEO requirements. I’ve a Tiki Express Tutorial on optimizing Tiki SEO waiting to be published after updating it for Tiki 27 (yes I'm late 🤣).

After reviewing your website, I’m confident I can help you enhance its SEO performance. Don’t hesitate to reach out!


Hi Bernard, thanks, that's nice. At the moment, the main issue is that the interface default language being english, when google attempts to index a page with french content, there is a discrepancy since the html tag has lang=en and the content of the page (except menus) is in french. My idea is to automatically switch the interface to fr when such a page is requested.

Also, articles?lang=en is the homepage: for now, in the sitemap ifrei.org is declared as x-default, articles?lang=en as its en alternate, and articles?lang=fr as its fr alternate (cf the manually built sitemap in storage/public). I am not sure this is an orthodox use of x-default.

Once an orthodox syntax is validated, we have to modify the sitemap generator in order to generate I18n urls, with alternate hreflang pairs (or triplets for x-default), and add xmlns:xhtml="http://www.w3.org/1999/xhtml" to the urlset.

A last issue is to prevent pages with noindex to land in the sitemap. for the moment, we have added:

Copy to clipboard
if (($namecatg=="4Noindex")||($namecatg=="4Webmaster")){ $smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW'); }

in tiki-index and tiki-read_article: this dirty trick use a category 4Noindex that can indicate which content has to have a noindex. So, the modified sitemap generator would have to test these noindex. This is not very clean, but a full I18n clean sitemap generator would require a comprehensive admin interface (although, I did not check if there is one in tiki 27).

--
mb

posts: 8648 France

Hello mb,

I kindly suggest starting a new discussion for your SEO questions. 😊

In brief, it seems your Tiki setup or multilingual configuration is not being used correctly. On my multilingual Tiki sites, pages are properly indexed in all languages.

Bernard

PS: Still suggesting to contact me to check your Tiki (1h no charges)