Understanding difference between load and require api by example