• Resolved javad2000

    (@javad2000)


    Hello
    I have tested about 300 themes, but the best one that could satisfy me so far , was Travelify. I have only one problem with this theme. It is unexpectedly slow. I have not over-loaded the theme with images or plugins. The only image I added to the first page of my website, was the website logo.
    https://www.irannopendar.com/wordpress/

    I have not overloaded the website with plugins either. I have deactivated all the plugins except Advanced Menu, Jalali (Persian date) calendar, and the very light statistical plugin that I have designed myself. I have already tested all those plugins and they were not slowing down the website (Though I am not quite sure). I am a new comer in the world of WordPress. I don’t really know the reason behind slow page load time, but I have one idea. I. think this theme is downloading one or more of its fonts or images from an external website. When I am loading my website, the statusbar of Firefox says it is trying to connect to Google or something like that. I believe my website connects to a remote server when loading the site for the first time. After the first page load, the speed goes normal and the pages are loaded in less than a second, but the first page load takes between 3 to 10 seconds. Even 20 seconds in a few cases! Does Travelify theme download anything from remote websites? How can I deactivate those remote pictures or fonts?

    Thanks in advance.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Theme Author Silkalns

    (@silkalns)

    First page load is so slow because you have absolutely no cache used for your website.

    It won’t help switching to a different theme because Travelify is well optimized and you can see it how fast it loads on demo website.

    For our website we are using W3 Total Cache but that’s because of legacy and we would rather use WP Rocker or WP Super Cache if we would have to choose one plugin now. Fore more information about caching plugins for WordPress you can check this post.

    Caching can be done server side as well but only if you are using your own VPS and not shared hosting.

    Let me know if you need any further assistance with Travelify theme or WordPress caching and performance.

    Thread Starter javad2000

    (@javad2000)

    Hello
    Thank you for the reply. Do you mean Travelify does not download anything from other websites while being loaded for the first time?

    Theme Author Silkalns

    (@silkalns)

    It does use Google Fonts but I don’t believe that they can slow down your website. First of all they are hosted by Google. Second of all if for some reason Google is blocked in your country website will still load perfectly fine but just fonts will look different. It’s not like those fonts must be loaded before you can start using your website. Third of all I am using rather popular font for this website which means that is is very likely that these fonts are already cached in your visitors browser and doesn’t need to be loaded again.

    Thread Starter javad2000

    (@javad2000)

    Hello
    Thank you for the reply.
    So I was right! The theme tries to download something from a remote website! The Iranian government sometimes slows down our access to Google, and Google sometimes blocks our country. I don’t know which one is the case now. Maybe this is the main reason of my site slow-down, or maybe it is not! When my website is trying to load for the first time, the status-bar indicates downloading something from Google. Let’s give it a try. Is there a way I can deactivate those fonts, or to replace them with standard Windows fonts? What part of the theme should I modify for this purpose? I am not quite professional in CSS and theme modification, but I can speak some CSS and PHP.

    Theme Author Silkalns

    (@silkalns)

    Open second theme functions.php file that you can find inside travelify folder >> library >> functions. And on that file you can comment out or remove these two lines:

    https://github.com/puikinsh/Travelify/blob/master/library/functions/functions.php#L43

    https://github.com/puikinsh/Travelify/blob/master/library/functions/functions.php#L56

    Now theme will no longer attempt to load Google Fonts. Theme will do a fallback to font that is supported by any device, so no errors will be present. Only post title will look slightly different.

    Thread Starter javad2000

    (@javad2000)

    Thank you for the explanation. I went to Travelify> Libraries> Functions> Functions.php

    But I could find none of those lines. Nothing started with https. Is it possible that my Travelify version is different from yours? How can I find it? Which of the lines in functions.php includes those fonts? I also searched for Github, but I couldn’t find it. Then I searched the other files in Functions folder, and also the first functions.php, but neither one included those lines.

    Theme Author Silkalns

    (@silkalns)

    Those are URLs to Github. Open them up and see what code I am referring to.

    Thread Starter javad2000

    (@javad2000)

    Dear Silkalns
    I know those are URLs to github, and I opened the file, but such a URL is not located in the place you mentioned. I opened functions.php, but there is nothing like “github” in none of its lines. I downloaded the latest version of Travelify right now. Then I searched all of its files with Ultra File Search, but none of the files contains such an address to github. I think the given addresses are wrong. The file functions.php does not contain anything like “Github”. What is going wrong here? Why can’t I find the file and the address?

    Theme Author Silkalns

    (@silkalns)

    Ok, let’s try it in different way. Click here. Remove highlighted line from functions.php. Click here and remove highlighted line from your functions.php file.

    Let me know if it makes sense now.

    Thread Starter javad2000

    (@javad2000)

    Dear silkalns
    Thank you for highlighting the lines, but there is one problem. I am blind and I am reading the text with JAWS screen reader. I could not find any highlighted line in functions.php. I wish you could tell me the exact line number, so I would find and remove it. Please say the exact file name, file address and line number. Sorry if this discussion is growing long. That is because I like Travelify theme and I don’t like to switch to another. When I go to WP-Content> Themes> Travelify, I see two files named functions.php. One is in Travelify folder and has 110 lines. The second one is in Travelify> Library> Functions> Functions.php. The second one has 445 lines. Which line I should remove?

    Thank you.

    Theme Author Silkalns

    (@silkalns)

    Ok, that make sense.

    You should open second functions file that you can find in Travelify >> Library>> Functions >> functions.php.

    On that file you need to remove line number 43 and 56.

    Let me know if this helps.

    Thread Starter javad2000

    (@javad2000)

    Thank you. This time I could find them. I commented out those two lines. The speed problem is solved now. The first time load is 1 second instead of 5 seconds. Of course I tested only 3 times in 3 minutes (in both IE and FX), but I should investigate its performance over the course of time.

    Best Regards

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Problem With Page Load Speed In Travelify Theme’ is closed to new replies.