function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gauri Kasat 8Gauri Kasat 8 

problem with static resource in manage package

Hi all;
 
I have a beta managed package and have installed it in a new dev org but there is a problem; some of my Static Resources don't seem to be loading.
 
On my home page I have several VF page links. Those links have an image taken from Static Resources; the images are not loading but the link action is working. 
 
All of my pages and objects are Custom (we are not using any standard objects).
 
 The below is the .css code how it is refrencing
 
.start-btn {
    
    background: url(https://journeytracker-dev-ed--journeytracker.na59.visual.force.com/resource/1536648215000/JourneyTracker__StartMobi?isdtp=p1) no-repeat left top;
    background-size: 100% 100%;    
}

 
I tried the below options also, but it didn't worked.
background: url("{!$Resource.JourneyTracker__StartMobi}") no-repeat;

background: url("{!$Resource.StartMobi}") no-repeat;
 

 


I've looked at the Static Resource files and they are present.
 
The images file attributes are:
MIME type; image/svg+xml
Cache Control; Public
 

 
Any suggestions please.
Best Answer chosen by Gauri Kasat 8
Raj VakatiRaj Vakati
Try this
 
background: url(/resource/1536648215000/JourneyTracker__StartMobi) no-repeat;

background: url(/resource/1536648215000/JourneyTracker__StartMobi) no-repeat;