M
M
MyQuestion2021-06-24 12:04:23
JavaScript
MyQuestion, 2021-06-24 12:04:23

How to disable js library when an event occurs?

Good afternoon!

Is it possible to disable a library if it has already been initialized without a visible page reload?

I have a task to enable and disable the library at different screen resolutions.
I tried to add a script connection to the markup and remove classes, I did all this, but now I understand that all this is useless. Because js has already added its classes and changed the html structure.

For me, this is not important, I just spent time solving all this, I don’t want everything to be empty ...

As I understand it, you need to at least disable initialization, disable styles and reload the page at the time the screen changes, at the backpoint .

Is it all useless work or is this how someone does it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question