# Texture Loader doesn't load?

**URL:** <https://discourse.threejs.org/t/texture-loader-doesnt-load/1541>\
**Category:** Questions\
**Tags:** cors, loaders\
**Created:** [December 29, 2017, 5:49pm UTC](https://discourse.threejs.org/t/texture-loader-doesnt-load/1541 "2017-12-29T17:49:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jauregui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jauregui/32/5119_2.png) [@jauregui](https://discourse.threejs.org/u/jauregui)\
**Post date:** [December 29, 2017, 5:49pm UTC](https://discourse.threejs.org/t/texture-loader-doesnt-load/1541/1 "2017-12-29T17:49:02Z")

</div>

There exist a limit on the picture size to be loaded with texture loader??

I tried the same picture in 2 different locations and sizes

…

// Works fine, the same picture but different size.  
texture=new THREE.TextureLoader().load(‘[https://static.wixstatic.com/media/4ee8f5\_0b7bd9c30a2f4a76b6da3122c4ba93cb~mv2\_d\_5660\_2830\_s\_4\_2.jpg/v1/fill/w\_1213,h\_607,al\_c,q\_85,usm\_0.66\_1.00\_0.01/4ee8f5\_0b7bd9c30a2f4a76b6da3122c4ba93cb~mv2\_d\_5660\_2830\_s\_4\_2.webp](https://static.wixstatic.com/media/4ee8f5_0b7bd9c30a2f4a76b6da3122c4ba93cb~mv2_d_5660_2830_s_4_2.jpg/v1/fill/w_1213,h_607,al_c,q_85,usm_0.66_1.00_0.01/4ee8f5_0b7bd9c30a2f4a76b6da3122c4ba93cb~mv2_d_5660_2830_s_4_2.webp)’,function(t){material1 = new THREE.MeshBasicMaterial( {map: t} );alert(“loaded…”+t)});

//if try to load from this site doesn’t load at all…  
//texture=new THREE.TextureLoader().load(‘[https://ljlapps.files.wordpress.com/2017/12/bbb.png](https://ljlapps.files.wordpress.com/2017/12/bbb.png)’,function(t){material1 = new THREE.MeshBasicMaterial( {map:t } );alert(“loaded…”+t)});

…

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [December 29, 2017, 6:19pm UTC](https://discourse.threejs.org/t/texture-loader-doesnt-load/1541/2 "2017-12-29T18:19:52Z")

</div>

As far as i can see, the second request does not contain any [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) information in its response header. Because of this, you can’t load the picture from a different origin.

---

<div class="post-metadata">

**Author:** ![jauregui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jauregui/32/5119_2.png) [@jauregui](https://discourse.threejs.org/u/jauregui)\
**Post date:** [January 2, 2018, 8:36pm UTC](https://discourse.threejs.org/t/texture-loader-doesnt-load/1541/3 "2018-01-02T20:36:57Z")

</div>

tanks, you’re right, I modified the image size in the first and it is working, Thanks for you time

---

<div class="post-metadata">

**Author:** ![ben](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/ben/32/1174_2.png) [@ben](https://discourse.threejs.org/u/ben)\
**Post date:** [March 13, 2018, 1:51am UTC](https://discourse.threejs.org/t/texture-loader-doesnt-load/1541/5 "2018-03-13T01:51:54Z")

</div>

What i’m running into is indeed CORS had to read the CORS document a few times to realize what I was reading. That just opened my mind further with Three.js!
