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...Performance and...Performance and...Remove all css and js from simple pagesRemove all css and js from simple pages
Previous
 
Next
New Post
5/8/2016 7:51 PM
 
My site have many pages that only use a few controls.

Google page insider and other html analyse tools recommend  remove dependencies from css and js, because they delay rendering of the visible page area.

There are a few things that i could optimize my dnn pages:
- defer javascript loading. jquery and related library are big which is not good for slow mobile networks on emerging country. If loaded asynchronously would permit render of the page much faster. A loading cursor could indicate that site is still loading.

- reduce resources size. DNN version 8 enable removing default css by using DnnCssExclude, witch is great,it  enable to reduce 100k, but can only remove that resource. Can't find any documentation about it. For most of my site pages i would like to remove all dnn controls and load only jquery and skin.css so speed could be the fastest possible.

So, how can i remove all standard dnn resources from page or better, remove specific ones ?
If necessary to the platform i can write a module that would insert asynchronous load for those.


 
New Post
5/10/2016 8:23 AM
 
It's not a direct answer to your question - but a part way approach would be to arrange for css and js to be cached at the client browser. The browser has to retrieve them on the first page that uses them. After that they are effectively free.

The modern approach of 'cache-busting' eliminates any risk of a client browser using an out of date version of the css or js.

http://www.dynamisys.co.uk/ArticlesDo...

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Remove all css and js from simple pagesRemove all css and js from simple pages


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

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