Home » Javascript » After requesting the image in html, three.js requests the same image again

After requesting the image in html, three.js requests the same image again

Posted by: admin August 19, 2018 Leave a comment

Questions:

This is code

let texture = new THREE.TextureLoader().load("http://odf9m3avc.bkt.clouddn.com/1493817789932.jpg")
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/88/three.min.js"></script>
<img class='preLoad' src = 'http://odf9m3avc.bkt.clouddn.com/1493817789932.jpg' style='display:none'>
Answers: