This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Alvaro Lourenço
Posted Feb 01 - Read on Facebook

Hi folks,

I'm trying to dynamically load an image by using `new Image`, and then setting `image.src`.

This actually works inside Framer environment, but coders are having lots of 404 issues when opening it through the browser.

- Q: Is it possible to subscribe to `load` events in Image object?



Sigurd Tapio Mannsåker

Everything that works on a normal webpage also works in Framer :) are the images in your Framer project folder, or on a different server? Framer shouldn't really have an affect on whether you get 404s

Sigurd Tapio Mannsåker


Alvaro Lourenço

Well... I ended solving this by waiting until `image.onload` to stage the assets. Thanks!

Read the entire post on Facebook