# Js and view in elements

**URL:** <https://forums.realmacsoftware.com/t/js-and-view-in-elements/43996>\
**Category:** Elements API\
**Created:** [July 30, 2024, 2:14pm UTC](https://forums.realmacsoftware.com/t/js-and-view-in-elements/43996 "2024-07-30T14:14:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [July 30, 2024, 2:14pm UTC](https://forums.realmacsoftware.com/t/js-and-view-in-elements/43996/1 "2024-07-30T14:14:22Z")

</div>

Dan asked chatgpt to create some JS code to randomly load an image from a number of images, I then wrote some tailwind to display,  
it works, I tried custom component Image well but finds image but does not display in safari (finds the image though, bug as you mentioned) also the images with my external links do not show in Elements only in safari. probably me as I was not sure what to do with the JS  
I was refreshing safari, cannot see in video

see video  
[https://www.dropbox.com/scl/fo/ntu738fixviiwk4jwbcq4/ACFmGAIsS6eeob1o2BWS6C0?rlkey=p42obo8m80762likrfuv194gv&st=11qim3ss&dl=0](https://www.dropbox.com/scl/fo/ntu738fixviiwk4jwbcq4/ACFmGAIsS6eeob1o2BWS6C0?rlkey=p42obo8m80762likrfuv194gv&st=11qim3ss&dl=0)
