Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 25th, 2015, 1:33 AM   #1
HttpListener
Hobbyist Programmer
 
HttpListener's Avatar
 
Join Date: Jun 2011
Location: IRAN-Zanjan
Posts: 109
Rep Power: 6 HttpListener is on a distinguished road
Send a message via Yahoo to HttpListener
localize a css file

Hello guys , my website current template has an external CSS link that has many images URLs in it, The problem is that external file takes so long to be loaded and I wanna download the CSS file and relative images on my server so website can be loaded faster,Now the question is is there anyway I could download relative images easily without checking the CSS content manually?
Thanks in advance,
HttpListener is offline   Reply With Quote
Old Mar 25th, 2015, 7:09 AM   #2
Raikiriu
Ex-CS & Math student.
 
Raikiriu's Avatar
 
Join Date: Feb 2009
Location: Canada(Quebec)
Posts: 192
Rep Power: 9 Raikiriu is on a distinguished road
Re: localize a css file

Unfortunately, to the extent of my knowledge, if you want to download and keep the images on your server, you would have to change the path to the images in the CSS file. If you're only changing the CSS file to load from your server you *SHOULD* be able to leave it as it is.
__________________
Resident Shadow-Dweller
Raikiriu is offline   Reply With Quote
Old Mar 25th, 2015, 8:08 AM   #3
HttpListener
Hobbyist Programmer
 
HttpListener's Avatar
 
Join Date: Jun 2011
Location: IRAN-Zanjan
Posts: 109
Rep Power: 6 HttpListener is on a distinguished road
Send a message via Yahoo to HttpListener
Re: localize a css file

Thank you Raikiriu , Actually I meant both of downloading and changing the URLs, so there is no way to do this??
or do it easier?
Thanks,
HttpListener is offline   Reply With Quote
Old Mar 25th, 2015, 9:03 AM   #4
Raikiriu
Ex-CS & Math student.
 
Raikiriu's Avatar
 
Join Date: Feb 2009
Location: Canada(Quebec)
Posts: 192
Rep Power: 9 Raikiriu is on a distinguished road
Re: localize a css file

I do not t know of a way to "easily" do everything at once. They only way I can think of is manually changing the urls.

There "probably" exists scripts/applications that will handle the tasks automatically, but I do not know of any.

Sorry I couldn't be of more help,
~Rai
__________________
Resident Shadow-Dweller
Raikiriu is offline   Reply With Quote
Old Mar 25th, 2015, 11:11 AM   #5
FlakkenTime
Software Developer
 
FlakkenTime's Avatar
 
Join Date: Apr 2010
Location: Bay Area, CA
Posts: 268
Rep Power: 7 FlakkenTime is on a distinguished road
Re: localize a css file

Not really a web expert but I've done a few side projects for fun. I'm not sure of any automated way to do what you want. As I understand your question I would suggested downloading it all then going through the CSS and removing stuff you don't need / want manually.
This would be slower to do manually but having the images / css file locally would be faster for clients as they don't have to reach out to 3rd party servers for the needed content.
Hope this helps
FlakkenTime is offline   Reply With Quote
Old Mar 27th, 2015, 6:54 AM   #6
HttpListener
Hobbyist Programmer
 
HttpListener's Avatar
 
Join Date: Jun 2011
Location: IRAN-Zanjan
Posts: 109
Rep Power: 6 HttpListener is on a distinguished road
Send a message via Yahoo to HttpListener
Re: localize a css file

Thank you FlakkenTime,
HttpListener is offline   Reply With Quote
Old Mar 27th, 2015, 10:32 AM   #7
FlakkenTime
Software Developer
 
FlakkenTime's Avatar
 
Join Date: Apr 2010
Location: Bay Area, CA
Posts: 268
Rep Power: 7 FlakkenTime is on a distinguished road
Re: localize a css file

Happy to help
FlakkenTime is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Socket File Server sharp256 Java 0 May 3rd, 2014 12:44 AM
Reading data from a text file into a C struct someone2088 C 1 Dec 7th, 2011 8:22 AM
generating an html document, (with a pre-generated CSS file) EGD Eric Perl 0 Mar 17th, 2010 1:16 PM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 9:04 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC