2sxc 10.25 introduces a bunch of important enhancements as an LTS.
Performance Enhancements around jQuery
Google PageSpeed - especially the mobile check - punishes the use of jQuery and in many cases it's actually not needed at all. Up until now 2sxc always made sure that WebApi calls would work on every module, but this had an unexpected side-effect of forcing DNN to load jQuery no matter what. But we couldn't just change this, because a lot of your code simply worked because jQuery was there, and would break if we stopped doing this.
The 2sxc client API using $2sxc was completely rewritten to not require jQuery any more. We've invested a lot of time to change how it works, so that in uses neither the ServicesFramework nor DNN jQuery. Read about how that's implemented in the docs.
So the new behaviour is as follows:
- Your old code will experience the same behavior as previously - DNN ServicesFramework is automatically activated and as a side-effect, jQuery is available. This means token-templates and old razor templates are not affected.
- New code - meaning razor that inherits from RazorComponent - will not automatically do this any more.
To move your code to the new RazorComponent and drop the automatic jQuery inclusion, use this recipe.
If your code uses RazorComponent and you need jQuery to be there for visitors, tell DNN you need it.
Content App Enhancements
The Content-App is technically the same as an App, but we're hiding some functionality to prevent people from doing things in a bad way. For example, Queries and WebApi are specifically not available to ensure that web designers and developers create normal Apps for sophisticated functionality.
Up until 10.25 the Content App also didn't show App-Settings or App-Resources for the same reasoning. We decided to change this, as there are good reasons to actually have settings or language resources on the content-app as well. You'll see that the new Content Templates now have some settings incl. the Google-Maps API key, which makes it easier to replace them on your installation.
Brand new Content Templates
There were dramatically enhanced. Read about the new Content-Templates in this blog post!
The code editor was out of sync with the latest development, so we updated all the snippets to the new conventions and also added a bunch of RazorBlade snippets.
Get it now!
Get 2sxc 10.25 LTS from github releases :).
Love from Switzerland,