This is a migrated thread and some comments may be shown as answers.

[Solved] Asset management not rendering

2 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anthony Smith
Top achievements
Rank 1
Anthony Smith asked on 15 Jun 2010, 12:07 PM
Hi guys
Every now and then when I visit my website (which uses the telerik asset management for css and js) and every now and then no style tags or script tags are rendered out.

If I refresh the app pool it comes back, but then a couple of days latter they will disappear again due to no reason... and in the mean time I haven't changed anything...

Any ideas???

Cheers
Anthony

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Jun 2010, 12:57 PM
Hello Anthony Smith,

The only reason this may occur is if the browser reports that it does not support JavaScript or CSS. We decided to remove those checks. You can do so as well - check the implementation of the Render methods of the ScriptRegistrar and StyleSheetRegistrar classes.

Remove the following if statements
if (ViewContext.HttpContext.Request.Browser.SupportsCss)

if (ViewContext.HttpContext.Request.Browser.EcmaScriptVersion.Major >= 1)



I hope this helps,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Anthony Smith
Top achievements
Rank 1
answered on 15 Jun 2010, 01:59 PM
Ok... I tried your theory and just now it happened again so I switched to a different browser and it worked, then went back to the original browser and it didn't work.... wtf....

The browser that is playing up is Chrome... so it would appear from what you have said that sometimes chrome is saying that it does support css and js and other times its doesn't... how does that work???

Cheers
Anthony 
Tags
General Discussions
Asked by
Anthony Smith
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Anthony Smith
Top achievements
Rank 1
Share this question
or