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 ...DNN 8 - Turn off unused resourcesDNN 8 - Turn off unused resources
Previous
 
Next
New Post
4/4/2016 7:37 AM
 

Hi All,

To speed up my page loading times I'm trying to reduce the number of files and/or content loaded. 

So Is it possible to stop certain resources from being loaded, especially when the viewer does not need access to any DNN facilities such as the control panel or editing

A few items include

default.css
dnn.modalpopup.js
jquery-ui.js

I am sure that these files are required if a person wants to use certain DNN facilities but most of the people accessing my site do not login and the vast majority of those that do login have no access to any DNN facilities.

I know that I can turn on minify and composite but the content of these still gets included. 

So I suppose I'm looking for a way to only load certain resources if they are needed

Many thanks in advance for any help given

Tony

 

 
New Post
4/4/2016 6:33 PM
 
you may try combining DNN resource files (DNN 7 +) to reduce the number of CSS and KS files loaded.

 

You find the option in Host Settings or Admin > Site Settings.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/5/2016 4:35 AM
 

Hi Sebastian,

I already use that option but the unwanted content still gets included. Even when using minify I'm including 100k of content I don't use and thats just for the 3 files I have mentioned

I know 100k is not a lot if you are on high speed broadband but I would love to exclude any content that is not required.

Regards

Tony

 

 
New Post
4/5/2016 8:21 AM
 
JQueryUI should only be included, if any of the modules on the page (or the framework itself) requests it.
Default.css contains some fallback css styles and should get included in the combined CSS.
Popup.js is loaded by the framework AFAIK, in case a popup is generated on the fly, but this file should be rather small, I wouldn't care.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/5/2016 9:01 AM
 

Hi Sebastion,

I agree that the popup.js file is tiny, it was just an example of a file getting loaded automatically even though it is never used, at least not for me.

I have a completely empty single page DNN website that contains a single Html module with no content and the skin is my own and jQueryUI is still being loaded so it must be getting loaded by the DNN framework itself by default. 

My site, for unauthorised users, does not use any styles in the default.css either. I have my own css styles. In the past I have suggested that any classes for dnn admin facilities get included in a separate css file that only gets loaded when required. Even if this css file got loaded on login, regardless of if it was needed, would improve things.

Shame we cannot turn off unneeded resources. 

FYI. I live in the UK countryside and my broadband is slower than a sleeping snail so any speed improvement I can get is noticeable.

Regards

Tony

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 8 - Turn off unused resourcesDNN 8 - Turn off unused resources


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out