thephoeron / LLTHW

Learn Lisp The Hard Way source-code and full book text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runaway ajax requests

thephoeron opened this issue · comments

There appears to be an issue with the jQuery code which loads the reference entry content into the modal, where it reloads all the scripts as well as the content several hundred times in some cases before successfully loading the content into the DOM.

This is affecting the performance of the web front-end, and skewing google analytics results.

Commit 0242628 didn't help.

Note: the number of extra requests being generated appears to be increasing exponentially with each selection of a reference symbol from the drop-down list.

Removed JSCL loading code from llthw-page template, removed /llthw.js from reference-basic-page template, re-introduced try-lisp-basic-page template. Seems to be running much smoother now.