[Plugin: Audio Player] Can AudioPlayer.embed script be inserted in header instead of footer?
-
I’m wondering if the players could be embedded sooner, as to not have to wait for all the sidebar widgets to be built first, as AudioPlayer is more important than many of the widgets that connect to external sources (twitter, facebook, etc.) and manage to take their sweet time doing it.
I see that that with the current AudioPlayer 2.0.1, the function that embeds the actual player (replacing the textual message about installing/upgrading Flash) doesn’t happen until the footer (several hundred lines down, in my case). It looks like this:
<script type="text/javascript"> AudioPlayer.embed("audioplayer_1", {soundFile:"..."}); AudioPlayer.embed("audioplayer_2", {soundFile:"..."}); </script>
Is it possible to run this script any sooner to embed the players sooner? Perhaps in the header or prior to the players (or, at least, before the sidebars load)?
Thanks in advance for support! Great plugin!
p.s. The page in question is https://missingtoof.com/?theme=2010
(using a Theme Test Drive plugin for redesign sandboxing. Append ?theme=2010 to pages to view the project correctly).
- The topic ‘[Plugin: Audio Player] Can AudioPlayer.embed script be inserted in header instead of footer?’ is closed to new replies.