You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,19 @@ The `<img-loader>` component takes many attributes that allows you to customize
114
114
115
115
**Note:** The default values can be changed using the [global configuration](https://github.com/zyramedia/ionic-image-loader#global-configuration) feature.
116
116
117
+
## Quirks
118
+
In some cases, images won't load on the first time, the culprit seems to be `@ionic-native/file` or `cordova-plugin-file` in its `writeFile` function not calling resolve or reject.
119
+
120
+
In the meantime we find a solution, here's a quick workaround:
121
+
122
+
In **./src/index.html** move your `polyfill.js`include above `cordova.js`
123
+
```
124
+
<!-- The polyfills js is generated during the build process -->
125
+
<script src="build/polyfills.js"></script>
126
+
127
+
<!-- cordova.js required for cordova apps (remove if not needed) -->
128
+
<script src="cordova.js"></script>
129
+
```
117
130
118
131
# Global Configuration
119
132
This is optional but it is helpful if you wish to set the global configuration for all of your `<img-loader>` instances. To configure the module, inject the `ImageLoaderConfig` provider in your app's main component.
0 commit comments