• Hi, I am building a costume theme and looked everywhere for a description for the default loaded scripts (on the front end) and what role do they serve.

    I have managed to pinpoint most of the files except for these two:

    1- underscore.min.js
    2- wp-util.min.js

    While I understand wordpress uses underscore.js in the back end. I am not sure why is wordpress loading it on the front end. Does wordpress use it on the frontend? if yes, where? or is it there merely for plugins to use ?

    As for wp-util.js, I don’t even understand what is this script supposed to be doing.

    Thank you in advanced

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you create a completely new theme from scratch there should be no JS except perhaps jQuery, some WP emoji script and wp-embed.js (at least that’s what I see in the custom theme I’m currently working on where I basically started from scratch). So, the JS you see there is either being included by the theme itself (set up in functions.php) or by some plugin.

    Thread Starter abonawaff53

    (@snipermilan)

    Hi,

    Thank a lot. You were correct. I just noticed that I was checking on a product page by woocommerce. Any idea as to why is woocoomerce loading these two particular scripts?

    BTW, both scripts are within in wordpress core files at wp-includes and not inside woocommerce files. Thats why I didn’t suspect woocommerce.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Scripts being loaded on font end’ is closed to new replies.