View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
13791Bug reportsOtherpublic2026-10-22 08:40
ReporterDenisChenu Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status confirmedResolutionopen 
Product Version3.11.x 
Summary13791: EM javascript are loaded in home page
Description

There are EM javascript in home page. There are no bug currently, but think it's bad and could eventually lead to unexpected effects

Steps To Reproduce

Home page, get a survey, come back to home page.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)3.12 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URL

Relationships

related to 13908 closedDenisChenu Token form , home page (and some other) shown javascript issue 

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2021-03-10 21:55

reporter   ~63164

Please update to the latest version and check if the bug can still be reproduced. Thank you.

DenisChenu

DenisChenu

2021-03-11 08:30

developer   ~63271

More quick to test than the other one.

reproduce

  1. https://shnoulle.limequery.com/228126?token=Test&newtest=Y
  2. https://shnoulle.limequery.com/
  3. Look at HTML prodeuced : contains Expression script related to survey 228126
c_schmitz

c_schmitz

2026-10-21 22:37

administrator   ~86682

Checked on current master: after visiting a survey, the home page no longer contains any script from that survey (fixed with 19883).

What remains is the general expression script, which is still loaded on the home page even though it is not needed there. It does no harm, but it is unnecessary.

c_schmitz

c_schmitz

2026-10-21 22:37

administrator   ~86683

The unneeded scripts currently loaded on the home page are:

  • em_javascript.js (the expression script itself)
  • decimal.js and decimalcustom.js (number handling for expressions)
  • an empty inline expression script block (id "lemscripts")
  • a call to triggerEmRelevance() at the end of the page

The same happens on other pages that use the survey theme layout, e.g. the token and registration forms and error pages.

DenisChenu

DenisChenu

2026-10-22 08:40

developer   ~86694

What remains is the general expression script, which is still loaded on the home page even though it is not needed there. It does no harm, but it is unnecessary.

Right, but really minor here in my opinion.

Issue History

Date Modified Username Field Change
2018-06-19 15:02 DenisChenu New Issue
2018-06-19 15:02 DenisChenu File Added: Capture du 2018-06-19 14-49-15.png
2021-03-10 21:55 ollehar Status new => feedback
2021-03-10 21:55 ollehar Note Added: 63164
2021-03-11 08:29 DenisChenu Relationship added related to 13908
2021-03-11 08:30 DenisChenu Note Added: 63271
2021-03-11 08:30 DenisChenu File Added: Capture d’écran du 2021-03-11 08-28-43.png
2021-03-11 08:30 DenisChenu Status feedback => new
2026-10-21 22:37 c_schmitz Note Added: 86682
2026-10-21 22:37 c_schmitz Bug heat 4 => 6
2026-10-21 22:37 c_schmitz Note Added: 86683
2026-10-21 22:41 c_schmitz Assigned To => c_schmitz
2026-10-21 22:41 c_schmitz Status new => confirmed
2026-10-21 22:42 c_schmitz Summary EM javascript are shown in home page => EM javascript are loaded in home page
2026-10-22 08:40 DenisChenu Note Added: 86694