Hi,
We're developing towords optimizing pageload on all solutions with 'Inline Critical CSS'
But we are having problems with the razor engine, which is used in Dynamicweb.
We have to include some files in the <head></head> in the master.cshtml:
<script type="text/javascript">
@Include("../static/dist/js/modernizr.js")
</script>
But the razor don't like the script because it contains '@'. But we can't have '@@' in a JS file.
We get this error when including the JS file:
Line 81: "/" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{" are valid.
Does anyone have some similair issues? And have made a workaround ?
It's important to get better pageload and prevent users from mobile devices etc. from leaving the website. This is why we have to do this :)