I have a fairly small template, about 150 lines. When I save it, the progress bar cycles 4 times. i.e. it takes a long time to save. When I view the template, however, it is truncated in the middle of a comment, with a % appended as the last character.
I cleared my sites cache. The DB seems to be performing correctly otherwise.
Has anyone seem this behavior?
Okay, I seem to have identified a symptom. I am using HTML5Boilerplate, which give me the following code:
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="assets/components/reignitioninc-ver2/js/libs/jquery-1.7.1.min.js"><\/script>')</script>
Removal of the last line that falls back to the local version of jQuery causes MODx to save very slowly. Removing it allows for saving in a 10th the time.
Anyone know why?
[ed. note: mmcglynn last edited this post 13 years, 8 months ago.]