Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: The background opens slowly  (Read 933 times)

Offline ioecc

  • Newbie
  • *
  • Posts: 37
  • Karma: +2/-0
    • View Profile
The background opens slowly
« on: January 05, 2022, 09:29:50 AM »
The background opens slowly, I hope it can be improved, it may be caused by some code, such as ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
It is not possible to open google-related websites in China. I hope to consider this factor when upgrading and provide some alternatives. We are not very good at the technical level, and we need a detailed description of the change to know how to change it.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5318
  • Karma: +268/-2
    • View Profile
Re: The background opens slowly
« Reply #1 on: January 06, 2022, 12:03:54 AM »
Hello
What background?

Offline ioecc

  • Newbie
  • *
  • Posts: 37
  • Karma: +2/-0
    • View Profile
Re: The background opens slowly
« Reply #2 on: January 06, 2022, 02:03:32 AM »
The background that has been running takes 5 seconds to enter, and every time you click on a different page, you have to wait for this time. Only VPN can solve this problem. But you need to disable VPN when releasing the product, it is very inconvenient to switch back and forth

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5318
  • Karma: +268/-2
    • View Profile
Re: The background opens slowly
« Reply #3 on: January 06, 2022, 08:11:36 AM »
Hello.
Check in browser what is loading so long https://developer.chrome.com/docs/devtools/network/#load

Offline ioecc

  • Newbie
  • *
  • Posts: 37
  • Karma: +2/-0
    • View Profile
Re: The background opens slowly
« Reply #4 on: January 06, 2022, 09:14:18 AM »
Follow the method you provided to test that there is a file that is slow to open
« Last Edit: January 06, 2022, 09:28:05 AM by ioecc »

Offline ioecc

  • Newbie
  • *
  • Posts: 37
  • Karma: +2/-0
    • View Profile
Re: The background opens slowly
« Reply #5 on: January 06, 2022, 10:03:40 AM »
Sometimes https://www.gravatar.com/avatar/546242df299605389a1a045ad273ca38?s=80&d=mm&r=g this address is unstable, and sometimes it can’t be opened, which will cause the background to open very slowly.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4336
  • Karma: +296/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: The background opens slowly
« Reply #6 on: January 06, 2022, 08:10:17 PM »
You can disable getAvatar

https://github.com/abantecart/abantecart-src/blob/566bfb6c9d4406f13ad9dc0dfcd09c977bf94115/public_html/core/lib/user.php#L308

Just add
Code: [Select]
return '';
I think we should add an option to disable this
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline ioecc

  • Newbie
  • *
  • Posts: 37
  • Karma: +2/-0
    • View Profile
Re: The background opens slowly
« Reply #7 on: January 07, 2022, 12:42:47 AM »
Thank you very much, much faster

 

Powered by SMFPacks Social Login Mod