How to remove unnecessary JS code from 'plugins.min.js'?

4 replies · opened May 5, 2021

SstaurMay 5, 2021

So the plugins.min.js contains 23-26k lines of code, I cannot upload such a large code on my website. I'm wondering if plugins.js has something to do with "plugins.min.js". I can see that plugins.js contains multiple libraries and I could remove the ones I don't need. However, when I try to replace plugins.min.js with plugins.js, the website breaks down and nothing works anymore. I'm wondering how can I remove the thousands of lines that I do not need.

SstaurMay 5, 2021

Okay, I'm looking through the documentation again and it seems like the body contains ``

This means that I only have to link the plugins: bootstrap, easing and lightbox? what does device-xl stand for?

SSemicolon WebSTAFFMay 5, 2021

Hello,

  1. You can simply remove the following code from the Page:
    [ch_pre][/ch_pre]

and our smart JS Functions will automatically load only the JS Files needed for your Page. You don't have to manually edit the js/plugins.js or js/plugins.min.js Files. More on this here: http://docs.semicolonweb.com/docs/getting-started/javascript/ .

  1. The .device-xl Class is the current size of the Viewport. You can use this Class to add conditional styling for your Website for Responsiveness.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SstaurMay 5, 2021

Alright, now I got another question. It seems like I need

However, If I do not add js/functions.js, the website does not work properly.
Reading through your documentation it seems like js/functions.js is not necessary since I loaded all scripts separately.
How can I remove functions.js without the page breaking down?

SSemicolon WebSTAFFMay 5, 2021

Hello,

The js/functions.js is very much required. This is the Script which initializes the JS plugins and manages them. So this File must not be removed.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard