Scripts and CSS related to UsersWP

This topic contains 8 replies, has 4 voices, and was last updated by  Stiofan O’Connor 4 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #5572

    iinz
    Lifetime Member
    Post count: 59

    Hi

    I noticed multiple scripts and CSS files loading on home page. This is impacting the overall loading of home page (as per speed tests).

    Though the impact is low and in few MS, I would like to reduce the load time wherever possible.

    Can we restrict UsersWP to load only on pages related to this plugin. I do NOT have any link of login / sign-in etc on hope page.

    OR I you have any other solution for this issue. Please advise.

    #5573

    iinz
    Lifetime Member
    Post count: 59
    This reply has been marked as private.
    #5577

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can use WP functions to dequeue scripts. We load them on every page in case UsersWP shortcodes are added to the page.

    In future versions we may be making some changes to how and when they are loaded and will take your feedback into account.

    The developer who works on this is out today but he will check back as soon as possible to provide you with an example.

    #5580

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We are loading CSS and JS on all pages because the shortcode or widgets used on any pages should work properly. If we restrict them to the UWP pages then widgets or shortcodes used on the other pages will not function properly.

    Regards,
    Patrik

    #5583

    iinz
    Lifetime Member
    Post count: 59

    Thanks Patrik. I strongly feel these scripts has scope for optimization.

    #5584

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We will optimize them for sure. Thank you for pointing out to this issue.

    Regards,
    Patrik

    #5585

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have been working on this and some improvements will be in the next release.

    Thanks,

    Stiofan

    #5590

    iinz
    Lifetime Member
    Post count: 59
    This reply has been marked as private.
    #5592

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Looks like spam, try enabling the recaptcha addon.

    Thanks,

    Stiofan

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket