swatit-jromero / wpng-calendar

Automatically exported from code.google.com/p/wpng-calendar
0 stars 0 forks source link

Move Javascripts called by the plugin down to the footer, or make plugin use Wordpress' scripts #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable WPNG-Calendar
2. View Source code, note how many scripts and css files are called in the
header
3. Run site through YSlow, note grade of F for "Make fewer HTTP requests"
and "Put JavaScript at bottom"

What is the expected output? What do you see instead?
 I have been able to move most of my other plugin-specific Javascripts into
the footer of my Wordpress install. I have done this manually in my theme
functions file by removing the call to add the scripts to the header, then
adding a call to add them in the footer. This has avoided messing up
Wordpress' default calls to JQuery, and also avoids editing the plugin
code.  However if I do this for WPNG-Calendar, the event links on the
widget break. 

I see in the WPNG-Calendar script where I could change the script to make
it call Wordpress' thickbox.css and use Wordpress' JS libraries but I'm not
sure if that will work.

Is there a way to make the calendar call the scripts from the footer or use
Wordpress' default scripts?  This would help cut down site load time.

What version of the product are you using? On what operating system?
Wordpress 2.86, WPNG-Calendar 0.85

Please provide any additional information below.

Original issue reported on code.google.com by straight...@gmail.com on 3 Dec 2009 at 11:46

GoogleCodeExporter commented 8 years ago
I am having the same issue.  Did you ever find a way to get this corrected?

Original comment by brow...@gmail.com on 29 Dec 2011 at 3:13