• Resolved xuyang

    (@xuyang)


    Hi There,

    I found those 3 assets are injected to the <head> on every page. The google pagespeed insights complains about the unused files downloaded.
    /wp-content/plugins/feed-them-social/feeds/css/styles.css
    /wp-content/plugins/feed-them-social/feeds/js/powered-by.js
    /wp-content/plugins/feed-them-social/feeds/js/fts-global.js

    I wonder if there’s an options to enqueue those files only on applicable pages? For example only those pages where the widget is used?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author slickremix

    (@slickremix)

    • This reply was modified 7 years, 6 months ago by slickremix.
    Plugin Author slickremix

    (@slickremix)

    Hey Xuyang,

    Unfortunately we can’t do anything about this at the moment. I have looked into this before and the flip side of us doing that is that the code does not get injected in the header where we need it to be for google too. Putting it in the footer does not work for our functions and if we put in in the body of the html then google will complain about that too.

    Thanks,
    Justin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘enqueue css/js only on applicable pages’ is closed to new replies.