An interesting problem here is from some legacy code that I recently looked through. I am trying to add a compression module to a project. It downloads all JS and CSS files, combines them, minimizes and compresses them. I tried a number of solutions, but they all have one fatal problem.
I have javascript that loads through page.ClientScript.RegisterClientScriptBlock in PreRender from MasterPage. The compression module loads as a Script Tag link in MasterPage, but when I launch the page ... the code from PreRender exits from above and gives me the error "$ is undefined", telling me jQuery is not loaded yet.
Also, I can't get past the same issue when it comes to embedded javascript on content pages.
Any ideas as to what causes this? Enlighten me because I have no idea.
jlrolin
source share