kinglozzer

If you look in your network tab, it’s probably loading jQuery as well as the jQuery that’s bundled into your compiled JS

kinglozzer

Yeah display-logic on the frontend is problematic to say the least…

nightjarnz

I'm sure there are more recent and modern libraries that you could use with npm :)

nightjarnz

this display logic module is designed to work in the CMS.

nightjarnz

Not sure how that'd work with applying plugins via modules with e.g. webpack.

nightjarnz

If you've not developed in an oldschool JS world before, jQuery works by importing files in order to apply plugins.

nightjarnz

and only in admin. Where entwine is bound.

nightjarnz

you need to use window.jQuery, yeh.

jkersu

ah right, that makes sense. So I need to use the core jQuery instance? FYI, I’m using the Display Logic on the frontend. Is there a way I can access the entwine that’s registered against the core jQuery instance or specify the file to use a specific jquery?