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...Performance and...Performance and...Merging JSMerging JS
Previous
 
Next
New Post
7/5/2010 2:50 AM
 
I'm trying to merge the various core js files together but have been encountering some problem.

I know of pageblaster but I wanted to do this as a lesson thingy.

What i've done so far is copying the content of dnn.js into dnncore.js and wipe dnn.js clean + save.

I'm getting error with Type is not defined. This piece is found in dnn.js where is it calling Type.registerNamespace

Any idea how to merge this without pageblaster or hitting that error? is there something that im not aware of?
 
New Post
7/5/2010 3:47 AM
 
Oh I got it solved. The order in which files are merged is important.
 
New Post
7/7/2010 7:11 AM
 
I answered too soon... it is not solved.

I'm getting very weird behaviour. What im doing now is just to removed dnn.js when its detected and reinject it back through http module.
When i do this, i will get the error

type is not defined and it seems like this line in the begining of dnn.js is causing it.

Type.registerNamespace('dnn')

Any clue? I've been searching for days and still have no solution.
 
New Post
7/17/2010 3:15 AM
 
You need to add it before any modules. Header might be a good place.

Thanks,
George

Where to eat? Visit GoEatOut for Food Promotion in Kuala Lumpur.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Merging JSMerging JS


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