Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...6.1 Loading of JS and CSS is wrong6.1 Loading of JS and CSS is wrong
Previous
 
Next
New Post
11/3/2011 4:17 PM
 
Here's the summary as of right now.

1. There is an issue with the order of CSS files when using the dnn:styles skin object. Gemini issue here
2. There is an issue with the order of *anything* you put in the page head by using the DNN page-level settings. Gemini issue here.

There is no JS-specific ordering issue that I'm aware of. To be clear though, if you put JS in your page head, then you may have an ordering issue. But that would be the same with CSS. Anything in the DNN page settings "head" text-box will be loaded *above* any other CSS/JS.

The issue is that in DNN 6.1 all of the CSS/JS files that are loaded through our new API are being loaded below page-level head content and dnn:styles content. This was not intentional and it will be corrected in the next release. I do not have knowledge of a time-frame or any influence over the timeframe even, but just know that we're working on it and we recognize this is very important.

The immediate workaround is to remove any JS/CSS that is having issues from the page head  in your DNN page settings, or to use DnnCssInclude instead of the styles skin object. More documentation on using the new controls/API is found here: Client Resource Management in DNN 6.1

Ian

Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
11/3/2011 4:27 PM
 
...and remember to assign a priority on your dnn:DnnCssInclude (if you don't use any, the default priority=100 is applied, but it seems that random final order is applied between CSS register on the same priority).

David Rodriguez
DNN Cloud Team Lead Engineer | Microsoft Azure MVP | Microsoft Azure Insider / Advisor

 
New Post
11/3/2011 4:52 PM
 
David Rodriguez Hernandez wrote:
...and remember to assign a priority on your dnn:DnnCssInclude (if you don't use any, the default priority=100 is applied, but it seems that random final order is applied between CSS register on the same priority).

Good tip David.

Regarding priority - If multiple items share the same priority they are loaded in the order that they were requested during the asp.net page lifecycle which can sometimes basically appear like it's random from an outside perspective.

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...6.1 Loading of JS and CSS is wrong6.1 Loading of JS and CSS is wrong


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out