Support » Plugin: Eonet Manual User Approve » No need to load css and js in frontend

  • The plugin loads some css and js in the head (!!!) of the pages which is totally unuseful in the frontend and in some cases could change the aspect and behaviour of the site.
    Please consider to load your files only in the backend and ONLY in the pages where they are really needed.

    Thank you.

    
    <link rel='stylesheet' id='eonet-ui-css-css'  href='[...]/wp-content/plugins/eonet-manual-user-approve/core/assets/css/eonet_ui_frontend.min.css' type='text/css' media='all' />
    <link rel='stylesheet' id='eonet-fonts-css'  href='//fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,600,600i,700,700i,900,900i&subset=latin,latin-ext' type='text/css' media='all' />
    
    <script type='text/javascript' src='[...]/wp-content/plugins/eonet-manual-user-approve/core/assets/js/bootstrap.min.js'></script>
    <script type='text/javascript' src='[...]/wp-content/plugins/eonet-manual-user-approve/core/assets/js/eonet_ui.min.js'></script>
    • This topic was modified 1 year, 8 months ago by  XXVII.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author antonioeatgoat

    (@antonioeatgoat)

    Hello XXVII,

    Thank you so much for this report. It makes sense, however the point is that the plugin use the Eonet core, which is shared with other Eonet plugins so it isn’t just a line to change for now. Anyway we will surely consider to improve this fact in a future release.

    Thank you so much again

    I noticed a small issue with your CSS code and since it’s not worth opening a thread, I just put it here.

    Somewhere in your CSS you put styles on every image tag like this:

    img {
        max-width: 100%;
        height: auto;
    }

    I don’t think that I need to point out that this is very problematic. The selector should be more specific to your plugin, since this may break the styling of a website (so happens with mine).

    Nonetheless great plugin, keep up the good work! 🤙

    I’m seeing the same behavior above as polymathy — this plugin is overriding site-wide CSS styles and therefore makes it impossible to use on our site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No need to load css and js in frontend’ is closed to new replies.