Ticket #2282 (new defect)

Opened 9 years ago

Last modified 9 years ago

Generalize use of the resource request registry

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.7
Component: CPS (global) Version: 3.5.1
Severity: normal Keywords:
Cc:

Description

This request-local registry has been introduced in CPSUtil for #837. Most javascript inclusions should rely on it, because it will load exactly what's needed.

This will help keeping the total weight of CPS page to a minimum

For example, calendar.js is useful for Date Time Widgets in edit mode, but is currently loaded on every single CPS page, which is useless in most public pages. Of course, the browser will cache it after the first request, but this doesn't help for a firsthand snappy experience.

Change History

comment:1 Changed 9 years ago by gracinet

  • Milestone changed from CPS 3.5.2 to CPS 3.5.3

This is a long term goal. In the above example, extra care must be taken : some pages not based on layouts might also need it and must be upgraded to use the registry as well.

Note: See TracTickets for help on using tickets.