Forums / Setup & design / Do I need these js files in my template?

Do I need these js files in my template?

Author Message

cousin mosquito

Thursday 25 August 2011 5:44:13 pm

I am trying to limit the number of http requests on each of my pages.

My pages are based on the Ezwebin templates of the initial Ezpublish installation.

Can anyone tell me what these files do and whether I need them in my templates, or at least point me to some documentation which describes what these files do ?

yui/build/calendar/assets/calendar.css
src="/design/standard/javascript/tools/ezjsselection.js
JavaScriptList[]=insertmedia.js
JavaScriptList[]=yui/build/yahoo-dom-event/yahoo-dom-event.js
JavaScriptList[]=yui/build/calendar/calendar-min.js
JavaScriptList[]=ezdatepicker.js

The requirements for my pages are as follows:
1. Load my page in normal circumstances.
2. Load my page in "front-end" editing mode for my users so that they can update content.

I know where the files can be found, I just need to know whether I need them. I am not (knowingly using any calender function).

Thanks in advance.

Asking the dumb questions for your benefit

Sandra Parente

Thursday 25 August 2011 11:23:56 pm

These .js are used by the toolbar, if you don't need to use I think it you can avoid loading them.

Sandra Parente
www.netbliss.it

eZ debug

Timing: Jan 17 2025 19:57:28
Script start
Timing: Jan 17 2025 19:57:28
Module start 'content'
Timing: Jan 17 2025 19:57:29
Module end 'content'
Timing: Jan 17 2025 19:57:29
Script end

Main resources:

Total runtime1.2035 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 597.2969180.8359
Module start 'content' 0.00601.1869 778.1328571.6016
Module end 'content' 1.19280.0106 1,349.734442.2266
Script end 1.2034  1,391.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2397140.0002
Check MTime0.00120.0997140.0001
Mysql Total
Database connection0.00070.057610.0007
Mysqli_queries1.152195.7322550.0209
Looping result0.00060.0471530.0000
Template Total1.174897.620.5874
Template load0.00250.203820.0012
Template processing1.172397.410120.5862
Template load and register function0.00020.014010.0002
states
state_id_array0.00070.060910.0007
state_identifier_array0.00210.176820.0011
Override
Cache load0.00200.1692270.0001
Sytem overhead
Fetch class attribute can translate value0.00120.103520.0006
Fetch class attribute name0.00090.076340.0002
XML
Image XML parsing0.00480.402820.0024
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00840.6987240.0004
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs