JS under clientlibs not getting rendered completely from dispatcher | Community
Skip to main content
December 9, 2015
Solved

JS under clientlibs not getting rendered completely from dispatcher

  • December 9, 2015
  • 1 reply
  • 495 views

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:

 

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

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.

1 reply

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
December 9, 2015

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.