Topic RSS
12:45 am
Please replace the ??? with your data!
- URL to the FORM: http://wordpresstheming.com/2009/12/optimize-plug-…..wordpress/
- The browser used: Firefox
- cforms version: 11.2
- Your Wordpress version: 2.9
I noticed that cForms (along with several other plug-ins) was loading scripts on every single page of my site even though I only actually use the form in one place. The scripts took about 20k, which isn't a lot, but I thought it would help reduce bloat to only load it on the page that needed it.
For anyone else that's interested in doing something like this, the code goes like this (and please correct me if you see that it could be better done):
I also wrote a post optimizing your plug-in scripts for WordPress.
1:15 pm
March 6, 2005
OfflineDevin said:
Please replace the ??? with your data!
- URL to the FORM: http://wordpresstheming.com/20…..wordpress/
- The browser used: Firefox
- cforms version: 11.2
- Your Wordpress version: 2.9
I noticed that cForms (along with several other plug-ins) was loading scripts on every single page of my site even though I only actually use the form in one place.
then you haven't configured cforms properly
The scripts took about 20k, which isn't a lot, but I thought it would help reduce bloat to only load it on the page that needed it.
For anyone else that's interested in doing something like this, the code goes like this (and please correct me if you see that it could be better done):
please note that when changing the core code you (a) quickly run the chance of breaking it and more importantly (b) if you do feel you need to change it, do it in accordance with the GPL requirements! (documenting your own code is a requirement)
however, better yet, configure cforms so it doesn't load the header on each page, it's two clicks. ![]()
Most Users Ever Online: 959
Currently Online:
104 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
tracedef: 43
mores: 21
Gyrus: 20
frozenwaste: 18
asuffredini: 15
photoworks: 14
Member Stats:
Guest Posters: 3548
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5157
Posts: 18386
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote










