Bug Spritesheet flashes when changing to event page with different image

I just noticed this in ver 1.4.4, it doesn't seem to happen in the previous versions from what I've tested.

Description
When an event changes to a different page, if the spritesheet used hasn't already been loaded on the map then the whole sheet will flash for a split second. Once the sheet has appeared then the flash doesn't seem to happen again.
Spoiler: screenshots
Had to take them from a video, first is the event's first page which only turns on a self-switch:
144mzbug_Moment.jpg

When the event is activated to change pages, then there's a sudden flash of the spritesheet its changing to:
144mzbug_Moment(2).jpg


And then the chosen sprite frame appears as if nothing happened:
144mzbug_Moment(3).jpg
How to Reproduce
  1. Load up a project using corescript v1.4.4
  2. Make an event with two pages, where the first page will activate the second page, and then choose different spritesheets (can't be the same spritesheets that are used for the party) for the two pages.
  3. Playtest and try interacting with the event.
I have no idea what made this happen, but it doesn't happen in 1.4.3 so I'm guessing there was some change to how spritesheets are being loaded.
This may be related to the if (this.bitmap.isReady()) check added to Sprite_Character#updateFrame in v1.4.4.

Edit - here's the code for a small plugin to revert only this change, if needed:
JavaScript:
/*:
 * @target MZ
 * @plugindesc Reverts 1.4.4 change to Sprite_Character#updateFrame.
 * @help Terms of use: free to use and/or modify for any project.
 */
Sprite_Character.prototype.updateFrame = function() {
    if (this._tileId > 0) {
        this.updateTileFrame();
    } else {
        this.updateCharacterFrame();
    }
};
This doesn't happen for me but I know this happens on RMMV if the file didn't load fast enough.
Related:
Putting the isReady check on the frame update means that the frame cannot update until after the new bitmap is ready. But bitmaps load asynchronously, which I guess is allowing the new sheet, unframed, to become visible for a moment: after it has loaded, but before the sprite's next updateFrame call.

A better approach may be to use a load listener to avoid applying the new bitmap to the sprite until it has loaded, e.g. something like this (untested):
JavaScript:
(() => {
  const applyNewBitmap = function(isBig, bmp) {
    this.bitmap = bmp;
    this._isBigCharacter = isBig;
  };
  Sprite_Character.prototype.setCharacterBitmap = function() {
    ImageManager.loadCharacter(this._characterName)
                .addLoadListener(
                  applyNewBitmap.bind(
                    this,
                    ImageManager.isBigCharacter(this._characterName)
                  )
                );
  };
})();
There might be other aspects to address, I haven't examined this in detail. 😴
Does this still happen in 1.5.0?
@Archeia I just tested 1.5.0 and it looks like the problem is gone. 🙂
:XP1:

Original thread: https://forums.rpgmakerweb.com/threads/spritesheet-flashes-when-changing-to-event-page-with-different-image.145241/