Support » Plugin: WP Shopify » Loading unnecessary files from wp-includes/js/dist on front-end

  • Similar to the topic in this support thread, WP Shopify is loading unnecessary files from the wp-includes/js/dist directory on the front-end of the site.

    Really bogging down site performance, is this something that can be addressed in an update?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew @ wpshop.io

    (@andrewmrobbins)

    @ericakfranz

    Hey Erica,

    Unfortunately my plugin uses the built-in WordPress version of React and React DOM. It does this by passing in the following dependencies for wp_enqueue_script:

    'wp-hooks', 'wp-element', 'wp-components', 'wp-i18n'

    When these dependencies are called, WordPress will in-turn load those 27 scripts. I definitely agree that it seems excessive.

    I did a little benchmarking, and it looks like when these 27 scripts are loaded it adds about 423.6 kB extra to the overall page size.

    I’ll look into improving this in the next plugin update. Hoping to have something out by Thursday.

    Plugin Author Andrew @ wpshop.io

    (@andrewmrobbins)

    @ericakfranz

    Hey Erica,

    Last night I managed to reduce the overall assets loaded from 27 to 15, and reduced the plugin footprint by 290 kB. This will be pushed out in the next plugin update (probably tomorrow).

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.