Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

JS under clientlibs not getting rendered completely from dispatcher

Avatar

Level 1

Hi all,

 

I am having a major issue whilst accessing a  page through webserver domain on local environment- Even though JS is getting cached correctly in dispatcher ,however, whilst accessing a page through domain the JS doesn’t load completely in browser and an error is also shown in console which is making many components on the page dysfunctional.

 

For instance, JS in dispatcher and publisher ends like below:

 

j();

a(this)

})

}catch(d){b(d,"Could not initialize the banners")

}}catch(d){b(d,"Init failed")

}});

 

 

However, In browser its only fetched upto something like below; last few characters go a miss causing syntax error.

j();

a(this)

})

}catch(d){b(d,"Could not initialize the banners")

}}

 

Browser console shows:

Capture.PNG

 

this only happens when I access the page from webserver(dispatcher)- I don't get any error whilst accessing a page on author or publish instance.

 

I thought this has something to do with minification, but even after turning off minification I am facing the same issue so will rule out this possibility.

 

this is happening for more than one JS file? Is it something to do with dispatcher configurations??

 

also, when I access the URL with query parameter ?debugClientLibs=true    Though, I get lots of error in browser console but all the components work as expected.

 

Can anyone please help here?

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

I am not seeing the image you have attached! 

but I think, there should be something blocking at the dispatcher. Check if you any such rules in your dispatcher config.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

I am not seeing the image you have attached! 

but I think, there should be something blocking at the dispatcher. Check if you any such rules in your dispatcher config.