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 ...Optimizing DNN css & js downloadsOptimizing DNN css & js downloads
Previous
 
Next
New Post
2/21/2009 2:05 AM
 

I was trying to optimize my dnn installation, and as a part of it, was optimizing css & js files.

I squeezed out every bit of redundant white-space from them. But still, the number of css & js files on a DNN5 portal page are so over-whelming that the user has to wait a considerable amount of time before the first page renders.

Then, I tried another trick (which backfired). I copy-pasted all css from all files into a single file (portal.css) and zeroed out all others. This was in the hope that after portal.css downloads, the page could render smoothly while the browser continues downloading other empty files which would not impact page rendering. However, this resulted in the page look to be disturbed. Seems like that was because of the ordering rules of css. So, in which order should I paste css into a single file (portal.css, then container.css, then default.css etc. ) so that the net inheritance & overriding rules are same had the css been on different files?

Also, can I do the same for js files? Is it a good idea to copy paste all static js files required on the home page to the first js file that downloads and zero out all others??

Finally, is there a way to control which files are linked into to a page by DNN? Like if I dont use jQuery on my portal, why should it be linked in at the first place. Similarly, I can paste all css content to a single file, and remove the linking in of all other css files. (If I remove skin.css from my Portal skin folder or container.css from container folder, would that still be linked in)??

Finally, I was looking for the "Enable Ajax" option in DNN 5? Where has that option gone from "DNN 5" Host Settings?

 
New Post
2/21/2009 10:56 AM
 

One solution you could use is Snapsis PageBlaster. There is a paid version and community version. I believe both offer CSS merging and JS merging. I know the paid version does. It will also allow you to move scripts to the header and move view_state to the bottom of the page for faster page loads. Keep in mind, it is a very powerful tool that requires some tweaking when merging CSS and JavaScript, but well worth the effort. It is also DNN 5 compatible.

 
New Post
2/23/2009 10:42 AM
 

That means it is actually a good idea to merge css & js files into one.

Anyways, does DNN 5 provide a way to unlink jQuery from being added to each page if an installation is NOT using that functionality??

 
New Post
2/23/2009 12:22 PM
 

r_honey wrote

 

does DNN 5 provide a way to unlink jQuery from being added to each page if an installation is NOT using that functionality??

I may be wrong, but I believe jQuery cannot be uninstalled from DNN5. The core uses it, currently, for some administration functions in the Control Panel module.

However, unless a module that's on a page requests to load jQuery (i.e.. calling DotNetNuke.Framework.jQuery.RequestRegistration), the releated javascript file won't get added into the script references and jQuery calls will error out on the client.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Optimizing DNN css & js downloadsOptimizing DNN css & js downloads


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