Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Prevent certain image from loading on a certain page
Old 08-22-2009, 06:30 PM Prevent certain image from loading on a certain page
Junior Talker

Posts: 4
Trades: 0
Hello everybody,

I have this little, but very annoying problem that I need a hand with.

How can I prevent my blogīs homepage from loading a certain CSS image which isnīt even being used on there?

I had social bookmark links as regular image links in my single.php and created a CSS sprite image from them, but now itīs being loaded in the background even when not used.

I am sure this is something very simple, but I just canīt seem to get my head around it.

Hopefully I made at least some sense with this.
sciencemies is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-23-2009, 08:37 AM Re: Prevent certain image from loading on a certain page
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Take it out of the CSS rules
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-23-2009, 08:53 AM Re: Prevent certain image from loading on a certain page
Junior Talker

Posts: 4
Trades: 0
Maybe I did not explain the situation with enough detail, but Iīll try again:

I have the CSS image code in Stylesheet and php code calling it in single.php. Still the image is being loaded on my frontpage (index.php) where it isnīt being even mentioned.

How can I prevent that?
sciencemies is offline
Reply With Quote
View Public Profile
 
Old 08-23-2009, 09:45 AM Re: Prevent certain image from loading on a certain page
lizciz's Avatar
Webmaster Talker

Posts: 744
Name: Mattias Nordahl
Location: Sweden
Trades: 0
So basically your browser is downloading some random image that isn't evan on the page that it's showing? That's just strange. You probably have it mentioned somewhere else you didn't think of. How do you evan know it's being loaded by the way?
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 08-23-2009, 02:07 PM Re: Prevent certain image from loading on a certain page
Junior Talker

Posts: 4
Trades: 0
Quote:
Originally Posted by lizciz View Post
So basically your browser is downloading some random image that isn't evan on the page that it's showing? That's just strange. You probably have it mentioned somewhere else you didn't think of. How do you evan know it's being loaded by the way?
Accoring to http://www.websiteoptimization.com/services/analyze/ the home page loads the CSS image and itīs the second largest file on the page.

Originally I had 6 html image links which were only loaded in single post pages, I did nothing else than changed them to a one CSS image, but now itīs being loaded basically on every page.

I did not touch any other than single.php and Stylesheet, so I have hard time believing that there is a mention of it anywhere else.

I agree that this is kinda mysterious.
sciencemies is offline
Reply With Quote
View Public Profile
 
Old 08-23-2009, 05:34 PM Re: Prevent certain image from loading on a certain page
Junior Talker

Posts: 4
Trades: 0
Well, Firebug does not seem to find that file to be loaded and I trust it more than the site that said otherwise, so I consider this problem to be solved. Thank you for your help guys.
sciencemies is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Prevent certain image from loading on a certain page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.59228 seconds with 12 queries