There is one special thing to consider for HTML documents uploaded as assets into App Inventor: During development, you have to use the development path to the embedded HTML document.
file:///mnt/sdcard/AppInventor/assets/ani.gif
Before building the app, use the production path.
file:///android_asset/ani.gif