I'm using esm which is a very useful package to support ES import keywords. According to the doc, in REPL, it can use preload command-line option to initialize
Per this extremely popular question, preloading images with javascript is as easy as: function preloadImage(url) { var img=new Image(); img.src=url; } But