In the example below entering CLDR or CLDH will load lisp CLD.LSP then execute the command. If I never enter those commands, the function is never loaded.
;;; CSA-2002.MNL
;;; Copyright (C) 1986 - 2004 by Falcon Design Services, Inc.
;;;
;;;;… <big load of stuff removed>
(autoload "E:/Programs/AC2002/Menus/csa/Lisp/cld" '("cldr" "cldh"))
(autoload "E:/Programs/AC2002/Menus/csa/chtext" '("ct" "cx"))
(autoload "e:/programs/ac2002/menus/csa/PLOTTABS.lsp" '("PLOTTABS"))
(autoload "e:/programs/ac2002/menus/csa/lisp/viewimp.vlx" '("viewimport"))
(autoload "e:/programs/ac2002/menus/csa/lisp/xrbg.lsp" '("xrbg"))
;;;;… <another big load of stuff removed>
(princ "\n =================================================================")
(setvar "xedit" 0)
(setvar "gripblock" 0)
(terpri) (terpri)
(princ "... Done.")
(princ)
The VIEWIMP.VLX is not loaded until I enter the command, and so on.