Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I try to inline javascript but run into the 256 kB limit of the theme.liquid template.
Is it possible to overrun this limit? How?
You can't.
I have a client where the css is inlined, to handle this I setup a build process to split the file in half into two seperate snippets.
You could take this same approach with JS, however, it's possible the JS will break if you just split it right in half, so you will have to be careful.
could you post some documentation where I can read more about this limit?
There isn't any official shopify documentation I could find.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024