Home Forums WoodMart support forum Script loading

Script loading

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #150828

    ToriTori38
    Participant

    Hello,

    I am trying to sort out a few things on the site to imrove page load. Your demo store runs very quickly. Our hosting is pretty good so that should not be the issue.

    wc-ajax=get_refreshed_fragments
    Even though I have disabled “Ajax add to cart” in your theme settings, the ajax=get_refreshed_fragments is still loading on each page load. Is that necessary?

    fonts.gstatic.com
    I have tested uploading our own custom fonts, but with just the two fonts loaded (poppins and Lato) it was nearly a 500kb file which was a lot. I have gone back to just loading these 2 fonts via Google fonts.

    I did a test however and completely disabled Google Fonts and removed them as custom fonts. Strangely the Poppins and Lato font still display on the page no problem. How is that possible? Are these two fonts loaded by the theme somehow? If that is the case, I am happy to disable Google fonts and not load any custom fonts 🙂

    Also, I only need 1 or 2 of the font weights but Google loads all options. Is it not possible just to load several font weights? This is what is being when fetching from Google: /fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic|Poppins:100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic

    Thank you!

    #150837

    Artem Temos
    Keymaster

    Hello,

    wc-ajax=get_refreshed_fragments
    This request comes with the WooCommerce plugin to update the shopping cart widget and there is no way to disable it. But actually it is called only once when a visitor comes to the website and shouldn’t harm your website performance.

    Do you mean that you disable Google fonts usage completelt from Typography? Could you please prepare such state on your website so we can test?

    There are a lot of different places on your website where all weights are required that is why you can’t disable them from Theme Settings. Only custom fonts can solve the situation.

    Kind Regards

    #150934

    ToriTori38
    Participant

    Hi there,

    Thanks for the reply. I use a 3rd party plugin which can disable loading of any scripts, css, js etc. From this plugin I disabled Google Fonts but still my site showed all fonts perfectly (which is not a problem but interested me why they still display). However maybe this is due to browser cache. In any case I will setup a stagign site for you to look… but not high priority 🙂

    #150976

    Artem Temos
    Keymaster

    It is because these fonts are installed on your system, or the plugin is not working as you expected 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Script loading’ is closed to new replies.