script loading on frontend when disabled.

WP-Filebase Pro Forums General Support script loading on frontend when disabled.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4969
    RACHAEL
    Participant

    There seems to be a lot of unecessary javascript coming into source view with filebase pro, even when disabled. Seems to be to do with uploading files – which we don’t need on the frontend, do you know if it’s possible to remove it?

    Also getting a call to a stylesheet even though we’ve disabled styles in admin

    <link rel='stylesheet' id='jquery-treeview-css'  href='http://mydowain.com/desing/wp-content/plugins/wp-filebase-pro/extras/jquery/treeview/jquery.treeview.css?ver=3.2.12' type='text/css' media='all' />
    :
    eg
    

    <script type=”text/javascript”>
    //<![CDATA[
    jQuery(document).ready(function(){});

    if(‘undefined’ == typeof wpfb_isScrolledIntoView) {
    function wpfb_isScrolledIntoView(elem)
    {
    `

    • This topic was modified 9 years, 2 months ago by RACHAEL.
    #5123
    Fabian
    Participant

    This JS is loaded on front-end if the current user has front-end upload permission. This script will not be seen by guests.
    Also the jquery.treeview.css is only loaded on filebrowser page.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.