The invention relates to the technical field of front-end resources, in particular to an intelligent caching method and device for loading front-end resources
on demand, equipment and a medium, and the method comprises the following steps: obtaining user behavior data, predicting an access page, identifying required resources, and constructing a
resource dependency graph; calculating
resource use frequency and importance, and determining a target resource; selecting a resource format and a compression mode according to the
user equipment type; according to the
resource dependency relationship graph, loading and caching target resources required by a next page possibly accessed by the user in advance; meanwhile, the caching strategy is dynamically adjusted based on the
resource use frequency and the importance index; the method comprises the following steps: monitoring a network condition, dynamically adjusting a resource loading strategy, pre-loading resources before a user requests by using a
resource dependency graph and a
server pushing technology, and determining a target loading mode when the user accesses. Therefore, the problems that in the prior art, resource loading is low in efficiency, a caching strategy is rigid, environment adaptability is poor, user behavior analysis is insufficient, and performance optimization
automation is lack are solved.