Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi there,
My website is: https://www.biervaneigenbodem.nl/
I have used the following tutorial to built a product slider using Flickity: https://pastebin.com/vBiVPqyD
Currently, the links from this tutorial in the theme.liquid file direct to an external online css and javascript file.
Using the following code
How can I avoid this and insert the css and javascript files completely into my Shopify store?
For example by creating the files: flickity.min.css and flickity.pkgd.min.js
The 302 redirect has an effect on the loading speed of my webshop so that is why I want to remove it.
Looking forward to the answers guys.
kind regards,
Wouter vd Meer
Solved! Go to the solution
This is an accepted solution.
Hi,
You can download the reference JS/CSS files and upload it to your website by navigating to Edit Code -> Assets section.
Your liquid code would be similar to the following:
<link rel="stylesheet" href="{{ 'flickity.min.css' | asset_url }}">
<script src="{{ 'flickity.pkgd.min.js' | asset_url }}"></script>
Cheers!
This is an accepted solution.
Hi,
You can download the reference JS/CSS files and upload it to your website by navigating to Edit Code -> Assets section.
Your liquid code would be similar to the following:
<link rel="stylesheet" href="{{ 'flickity.min.css' | asset_url }}">
<script src="{{ 'flickity.pkgd.min.js' | asset_url }}"></script>
Cheers!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025