![]() ![]() So instead of spelling out the final filename, we write: So the following standard preferences are provided in DefaultPreferences: When debugging, it is desirable to disable compression and zipping. Which technique is used depends on the module. Fortunately the use of the BuildContrib has normalised the main techniques. Browsers are not smart enough to decide which of these to include, so we have to provide some hints. To debug, or not to debug, that is the questionįor historical reasons there are a number of different techniques used to distinguish source (debug), compressed, and zipped Javascript and CSS files. Identifiers for CSS files should follow the same pattern. The PatternSkin uses the following ids: PatternSkin, PatternSkin/pattern_edit. ![]() This the ADDTOZONE id's are JavascriptFiles/foswikilib, JavascriptFiles/foswikiForm, JavascriptFiles/foswikiPref, JavascriptFiles/foswiki_edit etc. Identifiers used with ADDTOZONE for Javascript files should be composed from the topic and attachment base name.įor example, the main Foswiki Javascript library is identified by the JavascriptFiles id, and has sub_id's Form, Pref, edit. JSCalendarContrib/* - various, as dictated by optionsĪdhering to these best practices it makes it easier for designers and maintainers, and reduces the risk of errors.JavascriptFiles/foswikilib - base Javascript in the core.Note: as of 25/7/10, this is all in CDot's checkout, and is done entirely using existing code. The plan is to make this the master registry of ADDTOZONE identifiers and a centre of best practice. To debug, or not to debug, that is the question. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |