Support » Plugin: Feed Them Social - for Twitter feed, Youtube, Pinterest and more » TypeError: e.masonry is not a function

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

    (@slickremix)

    Thanks for contacting us. I would be glad to help out, can you please include these 3 things?

    1. The shortcode you are trying to use.
    2. An example link to the problem in question.
    3. The report from the System Info page of our plugin. Click here if you are unsure how to do this. https://www.slickremix.com/docs/system-info-page/

    Hi, I already solved. It was me.

    On my theme I deregistered jquery, renamed jquery_js to load v3, and deferred it. I kept v3 but renamed jquery as default and loaded without deferring it.

    Though, in next versions, I think you could maybe add an option to defer your scripts too. Nowadays performance is really important. Or, if you’re naming/registering your scripts the standard way, you could add some docs to report their names and to show how to defer them. Something like:

    
    if(!is_admin()) add_filter( 'script_loader_tag', 'wsds_defer_scripts', 10, 3 );
    function wsds_defer_scripts( $tag, $handle, $src ) {
      $defer_scripts = array(
        'your_mansory_script_name'
        ,'your_others...'
      );
    
      if(in_array($handle, $defer_scripts)){ return '<script src="' . $src . '" defer="defer" type="text/javascript"></script>' . "\n"; }
      return $tag;
    }
    Plugin Author slickremix

    (@slickremix)

    Thanks for all the info. We will keep this in mind for a future update. Have a great rest of the week. https://github.com/SlickRemix/feed-them-social/issues/76

    Spencer

    • This reply was modified 1 year ago by slickremix.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TypeError: e.masonry is not a function’ is closed to new replies.