javascript - Cordova app - Scripts and Stylesheets loaded fine. Image aren't -


i building web app + hybrid cordova app.

from what read, best provide relative paths cordova. first had issue solution solved in using <base> tag, , works fine now.

scripts , stylesheets load fine on both web app , hybrid app. images not. refuse load on mobile app.

here examples more specific, taken chrome's device inspector :

scripts

<script src="library/js/libs/require.js" data-main="library/js/dependencies.js"></script> 

this resolved hybrid app, file loaded properly. however, if try load image using same relative path logic :

images

<img src="library/images/mvp/user_default_avatar.png"> 

this not resolved properly, image isn't loaded. suggestion why facing inconsistant behaviour ?

i faced same problem sometime ago. correct tag, scripts , sylesheet being loaded successfull... images not, looking right.

you tried load image of different extension, like jpg? .png images may corrupted , need reviewed before save.

hope helps! best regards.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -