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...Administration ...Administration ...Can I exclude certain files from loadingCan I exclude certain files from loading
Previous
 
Next
New Post
12/4/2012 2:18 PM
 

Hi Folks,

I am trying out DNN 7 and while the amount of files being retrieved when a page loads seems to be less there are still a number of files that are getting loaded that I have no need of.

Is it possible to exclude certain files from being loaded when not in editing mode.

In my case the jquery-ui.min.js file is getting loaded even though I am not using it. This file is 205k in size and in my case thats 50% of the total KB being loaded. 

Another file I would love to exclude is the default.css file. For many reason this file just gets in the way. One reason s when using a HTML module the .Normal css class is added to my html. This sets the font-size to 12px. If I am using ems as my font sizes that really screws things up. I then have to modify the default.css file which in turn messes things up while editing

Thanks for any help given

Tony

 
New Post
12/5/2012 1:06 AM
 

No good answer for you on the jQuery.ui file as it's required by the administration to render many of the features. As far as the default.css. You could just remove the contents of the file.

Ultimately what should be considered here is a resource controller where an admin can choose what files are and are not included for users and admins. Sometimes ease of use gets in the way of fringe case exceptions. 


Sr. Software Engineer
 
New Post
12/5/2012 6:31 AM
 

Much of DNN will basically not function correctly if you try to remove jquery.

Having said this - the file should only ever really be loaded ONCE the first time the user arrives at your site.  After this the web browser will hold the file in the local cache - and simply load the file from that cache as the user navigates around your site.

With regard to default.css - IF your own skin completely overrides all of the definitions in default.css then you could remove it.  The definitions in default.css pretty much control how the entire dnn core looks and feels - without it the entire dnn backend would likely become visually unusable,






 
New Post
12/5/2012 7:21 AM
 

Thanks for the replies.

I'm aware that the Jquery UI is needed during administration/editing but my site does not need it when being viewed by the general public.

Part of my brief for my current site is to keep the number/size of the files loaded on page load to a minimum especially as the site is to be targeted to mobile devices. As I mentioned the Jquery UI takes up a large proportion of the resources loaded so having the option not to load it would be great. I know it only gets loaded the once but my client will still ask why such a large file is being loaded when we don't use it 99.99% of the time.

I also understand that the default.css file defines the look and feel of the DNN Core but it too gets in the way when skinning the look and feel of your own skin. I'm sure I'm not the only one to have come across this. Deleting the content of the default.css is not really the best approach as you then have to duplicate those definitions in your own style sheet. Plus a DNN upgrade would put the definitions back.

For instance why does the DNN 7 default.css file define the look of my  p, h1, h2, li, ol, hr tags. So now I have to override those definitions in my own style sheet which increases my workload and increases the file sizes. 

In my humble opinion the definitions in the default.css file should only be used to define the look/feel of the core and my own style sheet should define the look/feel of the actual site.

I love using DNN and these are 2 inconveniences that I am currently fighting with 

Thanks for listening and keep up the good work

Tony

 

 

 
New Post
12/7/2012 1:15 PM
 

Here, here Tony. 

I too have upgraded and found many more styles being defined in the default.css that I did not have to override before. 

Additionally (and this will reveal my noob status), shouldn't my #divname h1 declarations in my skin.css be overriding the h1 styles from default.css anyway?  It feels like the default.css file is taking priority over the skin.css file?  I thought the cascade went from the more general styles like h1 to the more specific styles like #divname h1.  Am I misunderstanding css?

Mike

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can I exclude certain files from loadingCan I exclude certain files from loading


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