Okay
  Public Ticket #4039026
Not compatible with Flying Scripts
Open

Comments

  • matt started the conversation

    I need to speed up my website, your plugin ads a lot of bloat. So the only solution is to use a plugin like Flying Scripts to delay java scripts on this and several other plugins. However, yours isn't compatible with FS and doesn't work at all.

    So before I switch to another mp3 player, just wanted to see if there was another solution or you're considering compatibly  improvements with FS.

  •  1,119
    Max replied

    Hi,

    By excluding our JS files to be delayed by the cache plugin, it should works.

    Remember that by excluding our own JS file will not significally faster the website so feel safe to exclude it to prevent the plugin to breaks.

    What does not work at first place by choosing to delayed the JS scripts ? Is there a particular reason why you want to delayed the JS files?

    Thanks,


    Max from the Sonaar.io Crew

  • matt replied

    I need to use flying scripts to delay several plugins, the difference is 69 to 98 but sonaar isn't compatible with flying scripts, even if

    sonaar
    iron-audioplayer
    sonaar-music-public

    is added to it.

    Sonaar just simply doesn't work when it's activated, no mp3 players or playlists show on website.

  •  1,119
    Max replied

    Could you please provide me access to your wp-admin and Ill exclude the correct files 

    Thanks,


    Max from the Sonaar.io Crew

  • Samuele replied

    If possible, I'd like to resume this thread. My issue is with FlyingPress (same developer as Flying Scripts). Sonaar MP3 player does work with it, even with JS delayed until interaction. However, it loads very slowly and I would like to exclude it from delay, too. I tried many js name combinations, but either it loads in a 'delayed' way or it does not load at all. Is there a way around this?

  •  689
    Alexandre replied

    Hi,

    Try excluding these folders from the delay:
    /wp-content/plugins/mp3-music-player-by-sonaar
    /wp-content/plugins/sonaar-music-pro
    /wp-includes/js/jquery/ui

     

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Samuele replied

    Hi Alexandre,

    Many thanks for your reply.

    Unfortunately, this doesn't work. I mean, the plugin loads in a "delayed" way, just like it did before. 

    Is there anything else you suggest to exclude? Another question: Is jquery needed? I thought that the Sonaar plugin was self-contained.


    Thanks,

    Samuele

  •  689
    Alexandre replied

    Hi,

    You're right that the Sonaar MP3 Player is mostly self-contained, but it does rely on jQuery UI for certain UI behaviors, so excluding /wp-includes/js/jquery/ui is still recommended.

    If excluding the plugin folders didn’t help, you might also try disabling “Delay all JS” and using only the “Defer” option — at least for the player page.

    That said, I should mention that I haven’t personally used FlyingPress, so I’m limited in how much I can assist beyond these general suggestions. If the issue persists, you may want to reach out to FlyingPress support directly — they might be able to guide you with more precise exclusions.

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Samuele replied

    Hi Alexandre,

    Unfortunately, Flyingpress – just like other caching plugin – doesn't allow you to change defer/delay options on a page-basis. I'll try to reach out to them, who might in turn get back to you in order to figure out a better solution. I am afraid  I am the only one involved.

    As for jQuery UI, do you think coding in Vanilla JS could be viable, as a lighter alternative, on future releases?


    Thanks again, 

    Samuele

  •  689
    Alexandre replied

    Hi,

    We’re not planning to replace jQuery UI in the short term, as it’s still deeply integrated into several features of the player. But we’ll keep the idea in mind for future updates as we continue to optimize the plugin.

    Thanks again for your input — much appreciated!

    Thanks,


    Alexandre from the Sonaar.io Crew