Performance: Blueprint static files
MEDIUM IMPACT
This affects page load speed by how static files are served and cached in Flask blueprints.
bp = Blueprint('bp', __name__, static_folder='static', static_url_path='/bp_static') app.register_blueprint(bp) # Access static files at /bp_static/filename
app = Flask(__name__) @app.route('/static/<path:filename>') def static_files(filename): return send_from_directory('static', filename)
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Manual static route | None | 0 | High (due to blocking) | [X] Bad |
| Blueprint static folder | None | 0 | Low (cached, parallel) | [OK] Good |