Possible to only include the plugin's JS on a particular page?

2 views
Skip to first unread message

iordo

unread,
Jul 13, 2009, 9:55:53 AM7/13/09
to WP Skype Online Status
Hi,

Is it possible to only inlude the plugin's JS file in the head section
only on the page that it is needed rather than on all pages?

Thanks for your help. :)

Yordan

R.A. van Hagen

unread,
Jul 14, 2009, 9:19:57 AM7/14/09
to wp-skype-on...@googlegroups.com
Hi Yordan,

You are not the first to ask about this and I have been thinking about a
solution. I will be trying to find a way for the plugin to verify if there
is either a button in the current post/page content or in the sidebar of
the current page before it ads the skype code to the header.

In any case, there will be an option to include the code in the footer
instead to improve pageload. This is planned for the next release.

I have not tested with version 2.8 so if you can report any
incompatibility issues, thanks!

Cheers,
Allard
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Yordan Bratkov

unread,
Jul 14, 2009, 9:30:16 AM7/14/09
to wp-skype-on...@googlegroups.com
I have found a temporary fix by using Justin Tadlock's Javascript Logic plugin to load all the JS for all plugins conditionally and commenting out the sections in the plugins themselves where the JS is being added. Very rough but works fine.

Looking forward to the next version of Skype Status Button - I'm on 2.8.1 and there are no issues.

Cheers, Yordan

2009/7/14 R.A. van Hagen <ravan...@gmail.com>

R.A. van Hagen

unread,
Jul 14, 2009, 11:37:27 AM7/14/09
to wp-skype-on...@googlegroups.com
Ok, thanks for sharing your solution. I will have a look at that plugin. Maybe something to make it compatible without the need to hack code can be done without much trouble. 

Thanks for the tip :)

--~--~---------~--~----~------------~-------~--~----~
===================
'WP Skype Online Status'

Reply to wp-skype-on...@googlegroups.com

To unsubscribe, reply to wp-skype-online-s...@googlegroups.com

Go to http://groups.google.com/group/wp-skype-online-status?hl=en
for more options.
-~----------~----~----~----~------~----~------~--~---

Reply all
Reply to author
Forward
0 new messages