"مكتبات تحسين PageSpeed" عبارة عن مجموعة من فئات C++ التي تعمل تلقائيًا على تحسين صفحات الويب والموارد التي تستخدمها، وذلك باستخدام إطار عمل مستقل عن الخادم. إنّ المكتبات مفتوحة المصدر ونرحب بأي مساهمات من المنتدى.
ثلاث خطوات للعمل باستخدام واجهات برمجة التطبيقات
تثبيت
تتمثل الخطوة الأولى لاستخدام PSOL في إنشاء mod_pagespeed من المصدر.
لاحظ أن هذا سينشئ وحدة Apache، ولكننا لن نكتشف
استخدام Apache أو الوحدة النمطية الخاصة بشركة PSOL أو نموذج التطبيق الخاص بنا.
القيود الحالية على نظام التصميم الذي تستخدمه شركة PSOL
اللازمة لتجميع mod_pagespeed أولاً.
يمكن العثور على التعليمات على mod_pagespeed على wiki ضمن
HowToBuild:
بعد الانتهاء من هذه الخطوة، أدخِل الأوامر:
cd INSTALL_DIR/src/pagespeed/automatic
make all
سيؤدي هذا الإجراء إلى إنشاء المكتبة pagespeed_automatic.a في
الدليل الحالي.
استخدام نموذج التطبيق كمرجع
يحتوي المصدر mod_pagespeed على دليل يحتوي على دمج بسيط مع ميزة "تحسين PageSpeed".
المكتبات. وفي هذا التقرير، يُرجى الاطّلاع على Makefile والفئة الرئيسية والبرنامج الرئيسي.
تاريخ التعديل الأخير: 2024-10-11 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-10-11 (حسب التوقيت العالمي المتفَّق عليه)"],[[["PageSpeed Optimization Libraries (PSOL) are C++ classes that automatically optimize web pages and resources, independent of the server."],["PSOL is open-source and welcomes community contributions."],["To use PSOL, you need to build mod_pagespeed, then build the PSOL library using provided instructions."],["A sample application and API documentation are available to guide integration and usage."]]],["PageSpeed Optimization Libraries (PSOL) optimize web pages using a server-independent framework. To use PSOL, first build mod_pagespeed from source, which generates `pagespeed_automatic.a`. Then, navigate to the `INSTALL_DIR/src/pagespeed/automatic` directory and execute `make all`. The sample application in the mod_pagespeed source directory provides examples in the Makefile, main class, and main program. Finally, the API documentation offers class library information. Community contributions to the open-source libraries are encouraged.\n"]]