libs.min.js

Solved
cpectre
Shopify Partner
33 3 1

Hello, I am currently in the process of optimizing a site for speed. I recently refactored all jquery code to vanilla js and I want to remove the libs.min.js file and I have no idea what this file is or if it is even necessary. I also seen a shopify__common.js file and I am wondering what this is?

https://cpectre.com
-Headless Shopify Ecommerce Agency
-We specialize in site speed optimization and have already achieved 4 100s in google lighthouse
Accepted Solution (1)
Dynasort
Shopify Partner
56 5 11

This is an accepted solution.

It's tough to say for sure without seeing the file itself. By the file name, it looks like libs.min.js is minified - you can run the file's content through an unminify tool like https://unminify.com/ to see the code in more context. If you can post a link to a page with the .js files included or attach the file, I or somebody else can take a quick look.

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort

View solution in original post

Replies 2 (2)
Dynasort
Shopify Partner
56 5 11

This is an accepted solution.

It's tough to say for sure without seeing the file itself. By the file name, it looks like libs.min.js is minified - you can run the file's content through an unminify tool like https://unminify.com/ to see the code in more context. If you can post a link to a page with the .js files included or attach the file, I or somebody else can take a quick look.

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
cpectre
Shopify Partner
33 3 1

Hey, thanks for the link I‘ll give that a go. This was on the prestige theme. I did comment the file out and there were errors being thrown from the theme js file which tells me it must be some kind of helper file. 

https://cpectre.com
-Headless Shopify Ecommerce Agency
-We specialize in site speed optimization and have already achieved 4 100s in google lighthouse