Korey's Wordpress Plugins Forums Forum Index Korey's Wordpress Plugins Forums
Home of Lazy-K Gallery
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Korey's Wordpress Plugins Site

Disabling plug-in on index page?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Korey's Wordpress Plugins Forums Forum Index -> Installation/Configuration Issues
View previous topic :: View next topic  
Author Message
ianharris



Joined: 06 Nov 2006
Posts: 4

PostPosted: Mon Nov 06, 2006 7:24 pm    Post subject: Disabling plug-in on index page? Reply with quote

I use the Lazy-K plug-in on my website - bathradar.co.uk. I love the plug-in, and have a quick question.

Although I only use images in the posts themselves, the plug-in is still loaded when you access the homepage - adding about 40kb to the size of the page.

Is there any way to disable to plug-in on a page-by-page basis?

Best
Ian
Back to top
View user's profile Send private message
Korey
Site Admin


Joined: 13 Oct 2006
Posts: 143
Location: United States

PostPosted: Mon Nov 06, 2006 8:05 pm    Post subject: Reply with quote

Ian, how do you mean that it adds 40kb to your pages? Are you talking about 40kb actually being downloaded to the client browser, or just additionally memory usage on the server side when processing the PHP? Are you talking about the CSS style information?

I'll take a look if you can help me understand the issue at hand.

Thanks,
_________________
Korey - Developer of Lazy-K Gallery
Back to top
View user's profile Send private message Visit poster's website
ianharris



Joined: 06 Nov 2006
Posts: 4

PostPosted: Tue Nov 07, 2006 5:33 am    Post subject: Reply with quote

Hi Korey

Basically, the user's browser is downloading the Lightbox Javascript on the index page - even though the index page doesn't feature any Lazy-K galleries.

I know they're being called, because in the browser's activity log (I'm using Safari), you see this:

http://bathradar.co.uk/wp-content/plugins/lightbox-plugin/js/prototype.js (46.5kb)
http://bathradar.co.uk/wp-content/plugins/lightbox-plugin/lightbox2.css (1.2kb)
http://bathradar.co.uk/wp-content/plugins/lightbox-plugin/lightboxjs.php?path=http://bathradar.co.uk/wp-content/plugins/lightbox-plugin/ (18.1kb)

Is that clearer? Thanks for responding!

Best

Ian
Back to top
View user's profile Send private message
Korey
Site Admin


Joined: 13 Oct 2006
Posts: 143
Location: United States

PostPosted: Tue Nov 07, 2006 9:19 am    Post subject: Reply with quote

Ian-

I understand now. Unfortunately, those files are not part of Lazy-K Gallery- rather they're part of the lightbox plugin you installed separately. The lightbox plugin is intended for images anywhere, not just integrating with Lazy-K Gallery. Now that I think of it, I'm not sure that the author of that plugin even knows about my software.

So, I'm sorry - I can't affect that, but I can give a little more information. I looked into that version of the plugin, and if I found the version that you're using, it's using code like:

Code:
<script type="text/javascript" src="lb/js/prototype.js"></script>


... in the header of your page. There's a hook in Wordpress (called "wp_head", in case you're curious) which allows a plugin to add that information to the header, but to my knowledge there's no way to tell Wordpress that it should only include that information in certain spots.

Also, those javascript and CSS files are being referenced as standalone files. As such, if I understand correctly, your browser can easily cache that file, so even though it's included on every page, it's only downloaded once.
_________________
Korey - Developer of Lazy-K Gallery
Back to top
View user's profile Send private message Visit poster's website
abcd255
Guest





PostPosted: Fri Mar 06, 2009 6:03 am    Post subject: north face outlet store Reply with quote

This is a rare sport. When winter arrives, you have a chance to enter the snowy world, but if you live in the south rely on, have to run all the way north. So, if you have never played, is really not surprising at all. However you say it with the beauty of the winter schedule will be perhaps more of a - go skiing! north face outlet store


Low temperature in the charm of sports north face outlet store


Winter so that we are used to hide in the room. "I'm cold, many were wearing a sweater made me feel heavy, seems to be locking, and so only in warm nest room in order to want, such as still able to light foot on the floor." Keen climbers face of Candy cold, and only the courage to go out from convergence. The effects of hypothermia are powerful, it is time we put into the house, but also let us terribly depressed. "One winter completely into the mummy, the head with the body will be a trance, 'home' time and then one long and droop down the entire people." Mature single Sophie chills, even more afraid of a person, often in the mode of "winter depression . "


Seasonal changes are conducive to health. Cold body to body slightly nervous, but also to promote the vitality of our functions, especially the respiratory and circulatory function. Depressed mood to change the most basic way is to activities, especially outdoor activities. What other activities than skiing more attractive at this time we can better meet our health and the pursuit of Happiness? Its charm is apparent at low temperature in order to "save" those of us who is about to surrender the "couch potato."


Ski invited us to come to the clear, dynamic and vibrant outdoor world. "Boarding Peak, high-altitude location, let me puff of air, deep breathing so calm mind very quickly, a rare and refreshing in such a space completely open-minded, sucked into his mouth, although the air is chilly taste, but a few After the cold makes their coexistence with a lot of confidence, and physical possession of the equipment is in warm years, not the slightest fear. "Sophie skiing at first, after a pleasant experience, excitedly talking about their own feelings and experience:" If Do you really cold, your input will be faster in the sport, not to silly alone, began to be able to experience how the body's energy ignited quietly. you ski stick gently up and move forward cautiously, because a bit nervous, movement rate, but about two, the body a little bit of active warm up, which also cares about it being cold. "


Skiing same loneliness led us to north face outlet store bid farewell to winter. Country in Europe and America, skiing has long been the choice of a vacation home. Melco China Resorts Chief Executive Officer, GUAN Zhi-ming in his 25 years of skiing experience, and always unforgettable love with his wife when jumping from a helicopter with snow alongside Road taxiway, as well as the 3-year-old daughter at the time, it took her playing in the snow Road. "Sharing is a great skiing fun. Wear the same clothing, taxiway at the same track, but each time left taxiway not the same trajectory, the direction of each arc there are differences, their own feelings also has different, so the foot of arrival, the U.S. can talk about it, enjoyable for the warmth in their hearts filled with this person than a ski with more enthusiasm. "
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Korey's Wordpress Plugins Forums Forum Index -> Installation/Configuration Issues All times are GMT + 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP