apache / apache/cordova-android
Misc assets not displaying after device/dom load
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 1.6k
- Avg merge
- 16h 18m
- Merged PRs (30d)
- 11
Description
# Bug Report
## Problem
When the app display (after the splash screen) sometimes default fonts are shown and static images aren't loaded. If you close the app an reopen, or if you can trigger a page refresh with the console, then all assets are present.
### What is expected to happen?
All static assets such as fonts and images would be loaded on deviceready / domready.
### What does actually happen?
see "problem"
## Information
This is a react JS project using cordova
### Command or Code
`cordova build ios` then run the app
### Environment, Platform, Device
9.0.0 (cordova-lib@9.0.1)
### Version information
```
$ cordova info
cordova-lib@9.0.1 with:
cordova-common@3.2.0
cordova-create@2.0.0
cordova-fetch@2.0.1
cordova-serve@3.0.0
Environment:
OS: darwin
Node: v10.15.0
npm: 6.12.0
Plugins:
cordova-plugin-appcenter-analytics
cordova-plugin-appcenter-crashes
cordova-plugin-appcenter-push
cordova-plugin-appcenter-shared
cordova-plugin-compat
cordova-plugin-device
cordova-plugin-file
cordova-plugin-file-transfer
cordova-plugin-statusbar
cordova-plugin-whitelist
cordova-plugin-zip
...
"platforms": [
"ios",
"android"
]
```
## Checklist
- [x] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Contributor guide
Research direction
Start by reproducing the issue with `cordova build ios` and running the app, focusing on the transition after the splash screen and device/dom ready events. Compare the first launch with a refresh or reopen, and trace when static fonts and images become available. Done means all listed assets load on the initial launch without a manual refresh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript, react
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 22/100